<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>Schedule Western</title>

    <!-- Bootstrap core CSS -->
    <link href="<?php echo $this->baseUrl(); ?>/css/bootstrap.css" rel="stylesheet">

    <!-- Add custom CSS here -->
    <link href="<?php echo $this->baseUrl(); ?>/css/sb-admin.css" rel="stylesheet">
    <link rel="stylesheet" href="<?php echo $this->baseUrl(); ?>/font-awesome/css/font-awesome.min.css">
    <!-- Page Specific CSS -->
    <style type="text/css">
		table td,th{ height:50px; text-align: center}
		tr td.tds{
			width: 15%; padding:10px 20px;
		}
		tr td.tdtext{
			width: 35%;
		}
	</style>
  </head>

  <body>
  <?php 
	$url_edit_time = $this->url(array('module'=>'teacher','controller'=>'avaliable-time','action'=>'edit-time'));
?>

      <div id="page-wrapper">

        <div class="row"  style=" width:100%; margin:0 auto" >
          <div class="col-lg-12">
            <h1 style="color:#00F">Dashboard Schedule of Western University</h1>
            <ol class="breadcrumb">
              	<marquee onMouseOver="this.stop()" onMouseOut="this.start()" scrollamount="2">Western University is seeking for qualified and result oriented Lecturers of Hospitality and Toursim related field subject. The applications must have PhD., Master and/or Bachelor Degree in Hospitality and Tourism related field with 3 years

Please contact Western University Office: Address:#15, Street 528, Sangkat Boeungkok I, Khan Toul Kork, Phnom Penh, CAMBODIA.
Tel: 089 841 050

Please click on Job Announcement for detail. heloo world
                </marquee>
            </ol>
          </div>
        </div><!-- /.row -->
        <?php $url_submit = $this->url(array('module'=>'schedule','controller'=>'index','action'=>'index'));?>
        <form role="form" action="<?php echo $url_submit; ?>" method="post" enctype="multipart/form-data">
        
		<div class="col-lg-12 container">
			<?php echo $this->frmschedule->getElement("facuty");?>
			<?php echo $this->frmschedule->getElement("deparment");?>
			<?php echo $this->frmschedule->getElement("room_pri");?>
			<?php echo $this->frmschedule->getElement("academic_year");?>
			<?php echo $this->frmschedule->getElement("save");?>
		<div class="col-lg-2">
           <?php echo $this->frmschedule->getElement("year");?>
            </div>
            <div class="col-lg-2">
            <?php echo $this->frmschedule->getElement("semester");?>
            </div>
            <div class="col-lg-6"> </div>
             <div class="col-lg-2">
            <?php echo $this->frmschedule->getElement("session");?>
            </div>
            <div>&nbsp;</div>
            <div class="table-responsive" id="section_mornning">
              <table class="table table-bordered">
                <thead class="breadcrumb">
                  <tr>
                    <th>Time </th>
                    <th>Monday </th>
                    <th>Tuesday </th>
                    <th>Wenesday</th>
                    <th>Thursday </th>
                    <th>Friday </th>
                    <th>Saturday </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td class="time">7:00-8:30</td> 
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_mon_7_8");?>
                    	<?php echo $this->frmschedule->getElement("teacher_mon_7_8");?>
                    	<?php echo $this->frmschedule->getElement("room_mon_7_8");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_tue_7_8");?>
                    	<?php echo $this->frmschedule->getElement("teacher_tue_7_8");?>
                    	<?php echo $this->frmschedule->getElement("room_tue_7_8");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_wed_7_8");?>
                    	<?php echo $this->frmschedule->getElement("teacher_wed_7_8");?>
                    	<?php echo $this->frmschedule->getElement("room_wed_7_8");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_thu_7_8");?>
                    	<?php echo $this->frmschedule->getElement("teacher_thu_7_8");?>
                    	<?php echo $this->frmschedule->getElement("room_thu_7_8");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_fri_7_8");?>
                    	<?php echo $this->frmschedule->getElement("teacher_fri_7_8");?>
                    	<?php echo $this->frmschedule->getElement("room_fri_7_8");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sat_7_8");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sat_7_8");?>
                    	<?php echo $this->frmschedule->getElement("room_sat_7_8");?>
                    </td>
                  </tr>
                  <tr>
                    <td class="time">8:40-10:00</td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_mon_8_10");?>
                    	<?php echo $this->frmschedule->getElement("teacher_mon_8_10");?>
                    	<?php echo $this->frmschedule->getElement("room_mon_8_10");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_tue_8_10");?>
                    	<?php echo $this->frmschedule->getElement("teacher_tue_8_10");?>
                    	<?php echo $this->frmschedule->getElement("room_tue_8_10");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_wed_8_10");?>
                    	<?php echo $this->frmschedule->getElement("teacher_wed_8_10");?>
                    	<?php echo $this->frmschedule->getElement("room_wed_8_10");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_thu_8_10");?>
                    	<?php echo $this->frmschedule->getElement("teacher_thu_8_10");?>
                    	<?php echo $this->frmschedule->getElement("room_thu_8_10");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_fri_8_10");?>
                    	<?php echo $this->frmschedule->getElement("teacher_fri_8_10");?>
                    	<?php echo $this->frmschedule->getElement("room_fri_8_10");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sat_8_10");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sat_8_10");?>
                    	<?php echo $this->frmschedule->getElement("room_sat_8_10");?>
                    </td>
                  </tr>
                  <tr>
                    <td class="time">10:10-11:30</td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_mon_10_12");?>
                    	<?php echo $this->frmschedule->getElement("teacher_mon_10_12");?>
                    	<?php echo $this->frmschedule->getElement("room_mon_10_12");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_tue_10_12");?>
                    	<?php echo $this->frmschedule->getElement("teacher_tue_10_12");?>
                    	<?php echo $this->frmschedule->getElement("room_tue_10_12");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_wed_10_12");?>
                    	<?php echo $this->frmschedule->getElement("teacher_wed_10_12");?>
                    	<?php echo $this->frmschedule->getElement("room_wed_10_12");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_thu_10_12");?>
                    	<?php echo $this->frmschedule->getElement("teacher_thu_10_12");?>
                    	<?php echo $this->frmschedule->getElement("room_thu_10_12");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_fri_10_12");?>
                    	<?php echo $this->frmschedule->getElement("teacher_fri_10_12");?>
                    	<?php echo $this->frmschedule->getElement("room_fri_10_12");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sat_10_12");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sat_10_12");?>
                    	<?php echo $this->frmschedule->getElement("room_sat_10_12");?>
                    </td>
                  </tr>
                  
                </tbody>
              </table>
            </div>
            
            <!-- *************************************** Afternoon Section ******************************* -->
            
            <div class="table-responsive" id="afternoon_section">
              <table class="table table-bordered">
                <thead class="breadcrumb">
                  <tr>
                    <th>Time </th>
                    <th>Monday </th>
                    <th>Tuesday </th>
                    <th>Wenesday</th>
                    <th>Thursday </th>
                    <th>Friday </th>
                    <th>Saturday </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td class="time">1:00-2:30</td> 
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_mon_1_2");?>
                    	<?php echo $this->frmschedule->getElement("teacher_mon_1_2");?>
                    	<?php echo $this->frmschedule->getElement("room_mon_1_2");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_tue_1_2");?>
                    	<?php echo $this->frmschedule->getElement("teacher_tue_1_2");?>
                    	<?php echo $this->frmschedule->getElement("room_tue_1_2");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_wed_1_2");?>
                    	<?php echo $this->frmschedule->getElement("teacher_wed_1_2");?>
                    	<?php echo $this->frmschedule->getElement("room_wed_1_2");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_thu_1_2");?>
                    	<?php echo $this->frmschedule->getElement("teacher_thu_1_2");?>
                    	<?php echo $this->frmschedule->getElement("room_thu_1_2");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_fri_1_2");?>
                    	<?php echo $this->frmschedule->getElement("teacher_fri_1_2");?>
                    	<?php echo $this->frmschedule->getElement("room_fri_1_2");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sat_1_2");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sat_1_2");?>
                    	<?php echo $this->frmschedule->getElement("room_sat_1_2");?>
                    </td>
                  </tr>
                  <tr>
                    <td class="time">2:40-4:00</td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_mon_2_4");?>
                    	<?php echo $this->frmschedule->getElement("teacher_mon_2_4");?>
                    	<?php echo $this->frmschedule->getElement("room_mon_2_4");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_tue_2_4");?>
                    	<?php echo $this->frmschedule->getElement("teacher_tue_2_4");?>
                    	<?php echo $this->frmschedule->getElement("room_tue_2_4");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_wed_2_4");?>
                    	<?php echo $this->frmschedule->getElement("teacher_wed_2_4");?>
                    	<?php echo $this->frmschedule->getElement("room_wed_2_4");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_thu_2_4");?>
                    	<?php echo $this->frmschedule->getElement("teacher_thu_2_4");?>
                    	<?php echo $this->frmschedule->getElement("room_thu_2_4");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_fri_2_4");?>
                    	<?php echo $this->frmschedule->getElement("teacher_fri_2_4");?>
                    	<?php echo $this->frmschedule->getElement("room_fri_2_4");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sat_2_4");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sat_2_4");?>
                    	<?php echo $this->frmschedule->getElement("room_sat_2_4");?>
                    </td>
                  </tr>
                  <tr>
                    <td class="time">4:10-5:30</td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_mon_4_5");?>
                    	<?php echo $this->frmschedule->getElement("teacher_mon_4_5");?>
                    	<?php echo $this->frmschedule->getElement("room_mon_4_5");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_tue_4_5");?>
                    	<?php echo $this->frmschedule->getElement("teacher_tue_4_5");?>
                    	<?php echo $this->frmschedule->getElement("room_tue_4_5");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_wed_4_5");?>
                    	<?php echo $this->frmschedule->getElement("teacher_wed_4_5");?>
                    	<?php echo $this->frmschedule->getElement("room_wed_4_5");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_thu_4_5");?>
                    	<?php echo $this->frmschedule->getElement("teacher_thu_4_5");?>
                    	<?php echo $this->frmschedule->getElement("room_thu_4_5");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_fri_4_5");?>
                    	<?php echo $this->frmschedule->getElement("teacher_fri_4_5");?>
                    	<?php echo $this->frmschedule->getElement("room_fri_4_5");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sat_4_5");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sat_4_5");?>
                    	<?php echo $this->frmschedule->getElement("room_sat_4_5");?>
                    </td>
                  </tr>
                  
                </tbody>
              </table>
            </div>
            
            <!-- ************************************************ Evening Section **************************************** -->
            
            <div class="table-responsive" id="evening_section">
              <table class="table table-bordered">
                <thead class="breadcrumb">
                  <tr>
                    <th>Time </th>
                    <th>Monday </th>
                    <th>Tuesday </th>
                    <th>Wenesday</th>
                    <th>Thursday </th>
                    <th>Friday </th>
                    <th>Saturday </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td class="time">5:30-7:00</td> 
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_mon_5_7");?>
                    	<?php echo $this->frmschedule->getElement("teacher_mon_5_7");?>
                    	<?php echo $this->frmschedule->getElement("room_mon_5_7");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_tue_5_7");?>
                    	<?php echo $this->frmschedule->getElement("teacher_tue_5_7");?>
                    	<?php echo $this->frmschedule->getElement("room_tue_5_7");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_wed_5_7");?>
                    	<?php echo $this->frmschedule->getElement("teacher_wed_5_7");?>
                    	<?php echo $this->frmschedule->getElement("room_wed_5_7");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_thu_5_7");?>
                    	<?php echo $this->frmschedule->getElement("teacher_thu_5_7");?>
                    	<?php echo $this->frmschedule->getElement("room_thu_5_7");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_fri_5_7");?>
                    	<?php echo $this->frmschedule->getElement("teacher_fri_5_7");?>
                    	<?php echo $this->frmschedule->getElement("room_fri_5_7");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sat_5_7");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sat_5_7");?>
                    	<?php echo $this->frmschedule->getElement("room_sat_5_7");?>
                    </td>
                  </tr>
                  <tr>
                    <td class="time">7:00-8:30</td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_mon_7_8_1");?>
                    	<?php echo $this->frmschedule->getElement("teacher_mon_7_8_1");?>
                    	<?php echo $this->frmschedule->getElement("room_mon_7_8_1");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_tue_7_8_1");?>
                    	<?php echo $this->frmschedule->getElement("teacher_tue_7_8_1");?>
                    	<?php echo $this->frmschedule->getElement("room_tue_7_8_1");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_wed_7_8_1");?>
                    	<?php echo $this->frmschedule->getElement("teacher_wed_7_8_1");?>
                    	<?php echo $this->frmschedule->getElement("room_wed_7_8_1");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_thu_7_8_1");?>
                    	<?php echo $this->frmschedule->getElement("teacher_thu_7_8_1");?>
                    	<?php echo $this->frmschedule->getElement("room_thu_7_8_1");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_fri_7_8_1");?>
                    	<?php echo $this->frmschedule->getElement("teacher_fri_7_8_1");?>
                    	<?php echo $this->frmschedule->getElement("room_fri_7_8_1");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sat_7_8_1");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sat_7_8_1");?>
                    	<?php echo $this->frmschedule->getElement("room_sat_7_8_1");?>
                    </td>
                  </tr>
                  <tr>
                  
                </tbody>
              </table>
            </div>
            
            <!-- ************************************************ Weeked Section *************************************** -->
            
            
            <div class="table-responsive" id="weekend_section">
              <table class="table table-bordered">
                <thead class="breadcrumb">
                  <tr>
                  	<th></th>
                    <th>07:00 - 08:30 </th>
                    <th>08:40 - 10:00 </th>
                    <th>10:05 - 12:00 </th>
                    <th>01:00 - 02:30</th>
                    <th>02:40 - 04:00 </th>
                    <th>04:05 - 05:30 </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td class="time">Saturday</td> 
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sat_7_8");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sat_7_8");?>
                    	<?php echo $this->frmschedule->getElement("room_sat_5_7");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sat_8_10");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sat_8_10");?>
                    	<?php echo $this->frmschedule->getElement("room_sat_8_10");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sat_10_12");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sat_10_12");?>
                    	<?php echo $this->frmschedule->getElement("room_sat_10_12");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sat_1_2");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sat_1_2");?>
                    	<?php echo $this->frmschedule->getElement("room_sat_1_2");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sat_2_4");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sat_2_4");?>
                    	<?php echo $this->frmschedule->getElement("room_sat_2_4");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sat_4_5");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sat_4_5");?>
                    	<?php echo $this->frmschedule->getElement("room_sat_4_5");?>
                    </td>
                  </tr>
                  <tr>
                    <td class="time">Sunday</td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sun_7_8");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sun_7_8");?>
                    	<?php echo $this->frmschedule->getElement("room_sun_7_8");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sun_8_10");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sun_8_10");?>
                    	<?php echo $this->frmschedule->getElement("room_sun_8_10");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sun_10_12");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sun_10_12");?>
                    	<?php echo $this->frmschedule->getElement("room_sun_10_12");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sun_1_2");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sun_1_2");?>
                    	<?php echo $this->frmschedule->getElement("room_sun_1_2");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sun_2_4");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sun_2_4");?>
                    	<?php echo $this->frmschedule->getElement("room_sun_2_4");?>
                    </td>
                    <td>
                    	<?php echo $this->frmschedule->getElement("subject_sun_4_5");?>
                    	<?php echo $this->frmschedule->getElement("teacher_sun_4_5");?>
                    	<?php echo $this->frmschedule->getElement("room_sun_4_5");?>
                    </td>
                  </tr>
                  <tr>
                  
                </tbody>
              </table>
            </div>
          </div>
        </form>
        
      </div><!-- /#page-wrapper -->

	<script type="text/javascript">
	//var session = $('#session').val();
	document.getElementById('section_mornning').style.display = 'block';
	document.getElementById('afternoon_section').style.display = 'none';
	document.getElementById('evening_section').style.display = 'none';
	document.getElementById('weekend_section').style.display = 'none';
	function getSecssion(){
		var session = $('#session').val();
		if(session==1){
			//alert(session);
			document.getElementById('section_mornning').style.display = 'block';
			document.getElementById('afternoon_section').style.display = 'none';
			document.getElementById('evening_section').style.display = 'none';
			document.getElementById('weekend_section').style.display = 'none';
		}else if(session==2){
			//alert(session);
			document.getElementById('section_mornning').style.display = 'none';
			document.getElementById('afternoon_section').style.display = 'block';
			document.getElementById('evening_section').style.display = 'none';
			document.getElementById('weekend_section').style.display = 'none';
		}else if(session==3){
			//alert(session);
			document.getElementById('section_mornning').style.display = 'none';
			document.getElementById('afternoon_section').style.display = 'none';
			document.getElementById('evening_section').style.display = 'block';
			document.getElementById('weekend_section').style.display = 'none';
		}else{
			//alert(session);
			document.getElementById('section_mornning').style.display = 'none';
			document.getElementById('afternoon_section').style.display = 'none';
			document.getElementById('evening_section').style.display = 'none';
			document.getElementById('weekend_section').style.display = 'block';
		}
	}
	<?php $url_subject_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'get-subject-filter')); ?>
	function getSubjectFilter(){
		var deparment_id=$("#deparment").val();
		var year_id = $('#year').val();
		var semester_id = $('#semester').val();
			$.ajax({
				url:"<?php echo $url_subject_filter;?>",
				type:"post",
				data:{'deparment_id':deparment_id,'year_id':year_id,'semester_id':semester_id},
				success: function(data){
					subjects = $.parseJSON(data);
					//alert(data);
					if(subjects){
						$('#subject_mon_7_8').empty();
						 $('#subject_mon_7_8').val('').trigger("liszt:updated");
						 $('#subject_mon_7_8').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_mon_7_8').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_mon_7_8").find("option#subject_mon_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_mon_7_8').val('').trigger("liszt:updated");

						$('#subject_mon_8_10').empty();
						 $('#subject_mon_8_10').val('').trigger("liszt:updated");
						 $('#subject_mon_8_10').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_mon_8_10').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_mon_7_8").find("option#subject_mon_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_mon_8_10').val('').trigger("liszt:updated");

						$('#subject_mon_10_12').empty();
						 $('#subject_mon_10_12').val('').trigger("liszt:updated");
						 $('#subject_mon_10_12').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_mon_10_12').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_mon_7_8").find("option#subject_mon_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_mon_10_12').val('').trigger("liszt:updated");

						$('#subject_mon_1_2').empty();
						 $('#subject_mon_1_2').val('').trigger("liszt:updated");
						 $('#subject_mon_1_2').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_mon_1_2').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_mon_7_8").find("option#subject_mon_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_mon_1_2').val('').trigger("liszt:updated");

						$('#subject_mon_2_4').empty();
						 $('#subject_mon_2_4').val('').trigger("liszt:updated");
						 $('#subject_mon_2_4').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_mon_2_4').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_mon_7_8").find("option#subject_mon_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_mon_2_4').val('').trigger("liszt:updated");

						$('#subject_mon_4_5').empty();
						 $('#subject_mon_4_5').val('').trigger("liszt:updated");
						 $('#subject_mon_4_5').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_mon_4_5').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_mon_7_8").find("option#subject_mon_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_mon_4_5').val('').trigger("liszt:updated");

						$('#subject_mon_5_7').empty();
						 $('#subject_mon_5_7').val('').trigger("liszt:updated");
						 $('#subject_mon_5_7').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_mon_5_7').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_mon_7_8").find("option#subject_mon_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_mon_5_7').val('').trigger("liszt:updated");

						$('#subject_mon_7_8_1').empty();
						 $('#subject_mon_7_8_1').val('').trigger("liszt:updated");
						 $('#subject_mon_7_8_1').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_mon_7_8_1').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_mon_7_8").find("option#subject_mon_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_mon_7_8_1').val('').trigger("liszt:updated");

						///tue

						$('#subject_tue_7_8').empty();
						 $('#subject_tue_7_8').val('').trigger("liszt:updated");
						 $('#subject_tue_7_8').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_tue_7_8').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_tue_7_8").find("option#subject_tue_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_tue_7_8').val('').trigger("liszt:updated");

						$('#subject_tue_8_10').empty();
						 $('#subject_tue_8_10').val('').trigger("liszt:updated");
						 $('#subject_tue_8_10').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_tue_8_10').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_tue_7_8").find("option#subject_tue_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_tue_8_10').val('').trigger("liszt:updated");

						$('#subject_tue_10_12').empty();
						 $('#subject_tue_10_12').val('').trigger("liszt:updated");
						 $('#subject_tue_10_12').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_tue_10_12').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_tue_7_8").find("option#subject_tue_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_tue_10_12').val('').trigger("liszt:updated");

						$('#subject_tue_1_2').empty();
						 $('#subject_tue_1_2').val('').trigger("liszt:updated");
						 $('#subject_tue_1_2').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_tue_1_2').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_tue_7_8").find("option#subject_tue_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_tue_1_2').val('').trigger("liszt:updated");

						$('#subject_tue_2_4').empty();
						 $('#subject_tue_2_4').val('').trigger("liszt:updated");
						 $('#subject_tue_2_4').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_tue_2_4').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_tue_7_8").find("option#subject_tue_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_tue_2_4').val('').trigger("liszt:updated");

						$('#subject_tue_4_5').empty();
						 $('#subject_tue_4_5').val('').trigger("liszt:updated");
						 $('#subject_tue_4_5').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_tue_4_5').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_tue_7_8").find("option#subject_tue_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_tue_4_5').val('').trigger("liszt:updated");

						$('#subject_tue_5_7').empty();
						 $('#subject_tue_5_7').val('').trigger("liszt:updated");
						 $('#subject_tue_5_7').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_tue_5_7').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_tue_7_8").find("option#subject_tue_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_tue_5_7').val('').trigger("liszt:updated");

						$('#subject_tue_7_8_1').empty();
						 $('#subject_tue_7_8_1').val('').trigger("liszt:updated");
						 $('#subject_tue_7_8_1').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_tue_7_8_1').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_tue_7_8").find("option#subject_tue_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_tue_7_8_1').val('').trigger("liszt:updated");

						$('#subject_wed_7_8').empty();
						 $('#subject_wed_7_8').val('').trigger("liszt:updated");
						 $('#subject_wed_7_8').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_wed_7_8').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_wed_7_8").find("option#subject_wed_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_wed_7_8').val('').trigger("liszt:updated");

						$('#subject_wed_8_10').empty();
						 $('#subject_wed_8_10').val('').trigger("liszt:updated");
						 $('#subject_wed_8_10').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_wed_8_10').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_wed_7_8").find("option#subject_wed_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_wed_8_10').val('').trigger("liszt:updated");

						$('#subject_wed_10_12').empty();
						 $('#subject_wed_10_12').val('').trigger("liszt:updated");
						 $('#subject_wed_10_12').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_wed_10_12').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_wed_7_8").find("option#subject_wed_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_wed_10_12').val('').trigger("liszt:updated");

						$('#subject_wed_1_2').empty();
						 $('#subject_wed_1_2').val('').trigger("liszt:updated");
						 $('#subject_wed_1_2').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_wed_1_2').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_wed_7_8").find("option#subject_wed_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_wed_1_2').val('').trigger("liszt:updated");

						$('#subject_wed_2_4').empty();
						 $('#subject_wed_2_4').val('').trigger("liszt:updated");
						 $('#subject_wed_2_4').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_wed_2_4').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_wed_7_8").find("option#subject_wed_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_wed_2_4').val('').trigger("liszt:updated");

						$('#subject_wed_4_5').empty();
						 $('#subject_wed_4_5').val('').trigger("liszt:updated");
						 $('#subject_wed_4_5').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_wed_4_5').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_wed_7_8").find("option#subject_wed_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_wed_4_5').val('').trigger("liszt:updated");

						$('#subject_wed_5_7').empty();
						 $('#subject_wed_5_7').val('').trigger("liszt:updated");
						 $('#subject_wed_5_7').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_wed_5_7').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_wed_7_8").find("option#subject_wed_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_wed_5_7').val('').trigger("liszt:updated");

						$('#subject_wed_7_8_1').empty();
						 $('#subject_wed_7_8_1').val('').trigger("liszt:updated");
						 $('#subject_wed_7_8_1').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_wed_7_8_1').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_wed_7_8").find("option#subject_wed_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_wed_7_8_1').val('').trigger("liszt:updated");

						$('#subject_thu_7_8').empty();
						 $('#subject_thu_7_8').val('').trigger("liszt:updated");
						 $('#subject_thu_7_8').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_thu_7_8').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_thu_7_8").find("option#subject_thu_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_thu_7_8').val('').trigger("liszt:updated");

						$('#subject_thu_8_10').empty();
						 $('#subject_thu_8_10').val('').trigger("liszt:updated");
						 $('#subject_thu_8_10').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_thu_8_10').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_thu_7_8").find("option#subject_thu_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_thu_8_10').val('').trigger("liszt:updated");

						$('#subject_thu_10_12').empty();
						 $('#subject_thu_10_12').val('').trigger("liszt:updated");
						 $('#subject_thu_10_12').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_thu_10_12').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_thu_7_8").find("option#subject_thu_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_thu_10_12').val('').trigger("liszt:updated");

						$('#subject_thu_1_2').empty();
						 $('#subject_thu_1_2').val('').trigger("liszt:updated");
						 $('#subject_thu_1_2').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_thu_1_2').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_thu_7_8").find("option#subject_thu_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_thu_1_2').val('').trigger("liszt:updated");

						$('#subject_thu_2_4').empty();
						 $('#subject_thu_2_4').val('').trigger("liszt:updated");
						 $('#subject_thu_2_4').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_thu_2_4').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_thu_7_8").find("option#subject_thu_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_thu_2_4').val('').trigger("liszt:updated");

						$('#subject_thu_4_5').empty();
						 $('#subject_thu_4_5').val('').trigger("liszt:updated");
						 $('#subject_thu_4_5').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_thu_4_5').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_thu_7_8").find("option#subject_thu_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_thu_4_5').val('').trigger("liszt:updated");

						$('#subject_thu_5_7').empty();
						 $('#subject_thu_5_7').val('').trigger("liszt:updated");
						 $('#subject_thu_5_7').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_thu_5_7').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_thu_7_8").find("option#subject_thu_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_thu_5_7').val('').trigger("liszt:updated");

						$('#subject_thu_7_8_1').empty();
						 $('#subject_thu_7_8_1').val('').trigger("liszt:updated");
						 $('#subject_thu_7_8_1').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_thu_7_8_1').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_thu_7_8").find("option#subject_thu_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_thu_7_8_1').val('').trigger("liszt:updated");

						$('#subject_fri_7_8').empty();
						 $('#subject_fri_7_8').val('').trigger("liszt:updated");
						 $('#subject_fri_7_8').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_fri_7_8').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_fri_7_8").find("option#subject_fri_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_fri_7_8').val('').trigger("liszt:updated");

						$('#subject_fri_8_10').empty();
						 $('#subject_fri_8_10').val('').trigger("liszt:updated");
						 $('#subject_fri_8_10').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_fri_8_10').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_fri_7_8").find("option#subject_fri_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_fri_8_10').val('').trigger("liszt:updated");

						$('#subject_fri_10_12').empty();
						 $('#subject_fri_10_12').val('').trigger("liszt:updated");
						 $('#subject_fri_10_12').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_fri_10_12').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_fri_7_8").find("option#subject_fri_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_fri_10_12').val('').trigger("liszt:updated");

						$('#subject_fri_1_2').empty();
						 $('#subject_fri_1_2').val('').trigger("liszt:updated");
						 $('#subject_fri_1_2').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_fri_1_2').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_fri_7_8").find("option#subject_fri_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_fri_1_2').val('').trigger("liszt:updated");

						$('#subject_fri_2_4').empty();
						 $('#subject_fri_2_4').val('').trigger("liszt:updated");
						 $('#subject_fri_2_4').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_fri_2_4').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_fri_7_8").find("option#subject_fri_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_fri_2_4').val('').trigger("liszt:updated");

						$('#subject_fri_4_5').empty();
						 $('#subject_fri_4_5').val('').trigger("liszt:updated");
						 $('#subject_fri_4_5').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_fri_4_5').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_fri_7_8").find("option#subject_fri_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_fri_4_5').val('').trigger("liszt:updated");

						$('#subject_fri_5_7').empty();
						 $('#subject_fri_5_7').val('').trigger("liszt:updated");
						 $('#subject_fri_5_7').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_fri_5_7').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_fri_7_8").find("option#subject_fri_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_fri_5_7').val('').trigger("liszt:updated");

						$('#subject_fri_7_8_1').empty();
						 $('#subject_fri_7_8_1').val('').trigger("liszt:updated");
						 $('#subject_fri_7_8_1').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_fri_7_8_1').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_fri_7_8").find("option#subject_fri_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_fri_7_8_1').val('').trigger("liszt:updated");


						$('#subject_sat_7_8').empty();
						 $('#subject_sat_7_8').val('').trigger("liszt:updated");
						 $('#subject_sat_7_8').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_sat_7_8').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_sat_7_8").find("option#subject_sat_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_sat_7_8').val('').trigger("liszt:updated");

						$('#subject_sat_8_10').empty();
						 $('#subject_sat_8_10').val('').trigger("liszt:updated");
						 $('#subject_sat_8_10').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_sat_8_10').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_sat_7_8").find("option#subject_sat_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_sat_8_10').val('').trigger("liszt:updated");

						$('#subject_sat_10_12').empty();
						 $('#subject_sat_10_12').val('').trigger("liszt:updated");
						 $('#subject_sat_10_12').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_sat_10_12').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_sat_7_8").find("option#subject_sat_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_sat_10_12').val('').trigger("liszt:updated");

						$('#subject_sat_1_2').empty();
						 $('#subject_sat_1_2').val('').trigger("liszt:updated");
						 $('#subject_sat_1_2').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_sat_1_2').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_sat_7_8").find("option#subject_sat_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_sat_1_2').val('').trigger("liszt:updated");

						$('#subject_sat_2_4').empty();
						 $('#subject_sat_2_4').val('').trigger("liszt:updated");
						 $('#subject_sat_2_4').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_sat_2_4').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_sat_7_8").find("option#subject_sat_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_sat_2_4').val('').trigger("liszt:updated");

						$('#subject_sat_4_5').empty();
						 $('#subject_sat_4_5').val('').trigger("liszt:updated");
						 $('#subject_sat_4_5').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_sat_4_5').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_sat_7_8").find("option#subject_sat_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_sat_4_5').val('').trigger("liszt:updated");

						$('#subject_sat_5_7').empty();
						 $('#subject_sat_5_7').val('').trigger("liszt:updated");
						 $('#subject_sat_5_7').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_sat_5_7').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_sat_7_8").find("option#subject_sat_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_sat_5_7').val('').trigger("liszt:updated");

						$('#subject_sat_7_8_1').empty();
						 $('#subject_sat_7_8_1').val('').trigger("liszt:updated");
						 $('#subject_sat_7_8_1').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_sat_7_8_1').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_sat_7_8").find("option#subject_sat_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_sat_7_8_1').val('').trigger("liszt:updated");

						$('#subject_sun_7_8').empty();
						 $('#subject_sun_7_8').val('').trigger("liszt:updated");
						 $('#subject_sun_7_8').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_sun_7_8').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_sun_7_8").find("option#subject_sun_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_sun_7_8').val('').trigger("liszt:updated");

						$('#subject_sun_8_10').empty();
						 $('#subject_sun_8_10').val('').trigger("liszt:updated");
						 $('#subject_sun_8_10').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_sun_8_10').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_sun_7_8").find("option#subject_sun_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_sun_8_10').val('').trigger("liszt:updated");

						$('#subject_sun_10_12').empty();
						 $('#subject_sun_10_12').val('').trigger("liszt:updated");
						 $('#subject_sun_10_12').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_sun_10_12').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_sun_7_8").find("option#subject_sun_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_sun_10_12').val('').trigger("liszt:updated");

						$('#subject_sun_1_2').empty();
						 $('#subject_sun_1_2').val('').trigger("liszt:updated");
						 $('#subject_sun_1_2').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_sun_1_2').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_sun_7_8").find("option#subject_sun_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_sun_1_2').val('').trigger("liszt:updated");

						$('#subject_sun_2_4').empty();
						 $('#subject_sun_2_4').val('').trigger("liszt:updated");
						 $('#subject_sun_2_4').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_sun_2_4').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_sun_7_8").find("option#subject_sun_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_sun_2_4').val('').trigger("liszt:updated");

						$('#subject_sun_4_5').empty();
						 $('#subject_sun_4_5').val('').trigger("liszt:updated");
						 $('#subject_sun_4_5').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_sun_4_5').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_sun_7_8").find("option#subject_sun_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_sun_4_5').val('').trigger("liszt:updated");

						$('#subject_sun_5_7').empty();
						 $('#subject_sun_5_7').val('').trigger("liszt:updated");
						 $('#subject_sun_5_7').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_sun_5_7').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_sun_7_8").find("option#subject_sun_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_sun_5_7').val('').trigger("liszt:updated");

						$('#subject_sun_7_8_1').empty();
						 $('#subject_sun_7_8_1').val('').trigger("liszt:updated");
						 $('#subject_sun_7_8_1').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= subjects.length; index++) {
							
								$('#subject_sun_7_8_1').append($("<option></option>").attr("value",subjects[index-1]['subject_id']).text(subjects[index-1]['subject_name'])); 
								//$("select#subject_sun_7_8").find("option#subject_sun_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#subject_sun_7_8_1').val('').trigger("liszt:updated");
						 
					}else{
						 $('#subject_mon_7_8').empty();
						 $('#subject_mon_7_8').val('').trigger("liszt:updated");
 						 $('#subject_mon_7_8').append($("<option></option>").attr("value","").text("No Result!"));
  						$('#subject_mon_7_8').val('').trigger("liszt:updated");
  						
  						$('#subject_mon_8_10').empty();
						 $('#subject_mon_8_10').val('').trigger("liszt:updated");
						 $('#subject_mon_8_10').append($("<option></option>").attr("value","").text("No Result!"));
 						 $('#subject_mon_8_10').val('').trigger("liszt:updated");

						 $('#subject_mon_10_12').empty();
						 $('#subject_mon_10_12').val('').trigger("liszt:updated");
						 $('#subject_mon_10_12').append($("<option></option>").attr("value","").text("No Result!"));
 						 $('#subject_mon_10_12').val('').trigger("liszt:updated");

						 $('#subject_mon_1_2').empty();
						 $('#subject_mon_1_2').val('').trigger("liszt:updated");
 						 $('#subject_mon_1_2').append($("<option></option>").attr("value","").text("No Result!"));

  						$('#subject_mon_2_4').empty();
						 $('#subject_mon_2_4').val('').trigger("liszt:updated");
						 $('#subject_mon_2_4').append($("<option></option>").attr("value","").text("No Result!"));
// 						 $('#item').val('').trigger("liszt:updated");

						 $('#subject_mon_4_5').empty();
						 $('#subject_mon_4_5').val('').trigger("liszt:updated");
						 $('#subject_mon_4_5').append($("<option></option>").attr("value","").text("No Result!"));
// 						 $('#item').val('').trigger("liszt:updated");

						 $('#subject_mon_5_7').empty();
						 $('#subject_mon_5_7').val('').trigger("liszt:updated");
						 $('#subject_mon_5_7').append($("<option></option>").attr("value","").text("No Result!"));
// 						 $('#item').val('').trigger("liszt:updated");

						 $('#subject_mon_7_8_1').empty();
						 $('#subject_mon_7_8_1').val('').trigger("liszt:updated");
						 $('#subject_mon_7_8_1').append($("<option></option>").attr("value","").text("No Result!"));
// 						 $('#item').val('').trigger("liszt:updated");

							$('#subject_tue_7_8').empty();
							 $('#subject_tue_7_8').val('').trigger("liszt:updated");
	 						 $('#subject_tue_7_8').append($("<option></option>").attr("value","").text("No Result!"));
	  						$('#subject_tue_7_8').val('').trigger("liszt:updated");
	  						
	  						$('#subject_tue_8_10').empty();
							 $('#subject_tue_8_10').val('').trigger("liszt:updated");
							 $('#subject_tue_8_10').append($("<option></option>").attr("value","").text("No Result!"));
	 						 $('#subject_tue_8_10').val('').trigger("liszt:updated");

							 $('#subject_tue_10_12').empty();
							 $('#subject_tue_10_12').val('').trigger("liszt:updated");
							 $('#subject_tue_10_12').append($("<option></option>").attr("value","").text("No Result!"));
	 						 $('#subject_tue_10_12').val('').trigger("liszt:updated");

							 $('#subject_tue_1_2').empty();
							 $('#subject_tue_1_2').val('').trigger("liszt:updated");
	 						 $('#subject_tue_1_2').append($("<option></option>").attr("value","").text("No Result!"));

	  						$('#subject_tue_2_4').empty();
							 $('#subject_tue_2_4').val('').trigger("liszt:updated");
							 $('#subject_tue_2_4').append($("<option></option>").attr("value","").text("No Result!"));
//	 						 $('#item').val('').trigger("liszt:updated");

							 $('#subject_tue_4_5').empty();
							 $('#subject_tue_4_5').val('').trigger("liszt:updated");
							 $('#subject_tue_4_5').append($("<option></option>").attr("value","").text("No Result!"));
//	 						 $('#item').val('').trigger("liszt:updated");

							 $('#subject_tue_5_7').empty();
							 $('#subject_tue_5_7').val('').trigger("liszt:updated");
							 $('#subject_tue_5_7').append($("<option></option>").attr("value","").text("No Result!"));
//	 						 $('#item').val('').trigger("liszt:updated");

							 $('#subject_tue_7_8_1').empty();
							 $('#subject_tue_7_8_1').val('').trigger("liszt:updated");
							 $('#subject_tue_7_8_1').append($("<option></option>").attr("value","").text("No Result!"));
//	 						 $('#item').val('').trigger("liszt:updated");

								$('#subject_wed_7_8').empty();
								 $('#subject_wed_7_8').val('').trigger("liszt:updated");
		 						 $('#subject_wed_7_8').append($("<option></option>").attr("value","").text("No Result!"));
		  						$('#subject_wed_7_8').val('').trigger("liszt:updated");
		  						
		  						$('#subject_wed_8_10').empty();
								 $('#subject_wed_8_10').val('').trigger("liszt:updated");
								 $('#subject_wed_8_10').append($("<option></option>").attr("value","").text("No Result!"));
		 						 $('#subject_wed_8_10').val('').trigger("liszt:updated");

								 $('#subject_wed_10_12').empty();
								 $('#subject_wed_10_12').val('').trigger("liszt:updated");
								 $('#subject_wed_10_12').append($("<option></option>").attr("value","").text("No Result!"));
		 						 $('#subject_wed_10_12').val('').trigger("liszt:updated");

								 $('#subject_wed_1_2').empty();
								 $('#subject_wed_1_2').val('').trigger("liszt:updated");
		 						 $('#subject_wed_1_2').append($("<option></option>").attr("value","").text("No Result!"));

		  						$('#subject_wed_2_4').empty();
								 $('#subject_wed_2_4').val('').trigger("liszt:updated");
								 $('#subject_wed_2_4').append($("<option></option>").attr("value","").text("No Result!"));
//		 						 $('#item').val('').trigger("liszt:updated");

								 $('#subject_wed_4_5').empty();
								 $('#subject_wed_4_5').val('').trigger("liszt:updated");
								 $('#subject_wed_4_5').append($("<option></option>").attr("value","").text("No Result!"));
//		 						 $('#item').val('').trigger("liszt:updated");

								 $('#subject_wed_5_7').empty();
								 $('#subject_wed_5_7').val('').trigger("liszt:updated");
								 $('#subject_wed_5_7').append($("<option></option>").attr("value","").text("No Result!"));
//		 						 $('#item').val('').trigger("liszt:updated");

								 $('#subject_wed_7_8_1').empty();
								 $('#subject_wed_7_8_1').val('').trigger("liszt:updated");
								 $('#subject_wed_7_8_1').append($("<option></option>").attr("value","").text("No Result!"));
//		 						 $('#item').val('').trigger("liszt:updated");

									$('#subject_thu_7_8').empty();
									 $('#subject_thu_7_8').val('').trigger("liszt:updated");
			 						 $('#subject_thu_7_8').append($("<option></option>").attr("value","").text("No Result!"));
			  						$('#subject_thu_7_8').val('').trigger("liszt:updated");
			  						
			  						$('#subject_thu_8_10').empty();
									 $('#subject_thu_8_10').val('').trigger("liszt:updated");
									 $('#subject_thu_8_10').append($("<option></option>").attr("value","").text("No Result!"));
			 						 $('#subject_thu_8_10').val('').trigger("liszt:updated");

									 $('#subject_thu_10_12').empty();
									 $('#subject_thu_10_12').val('').trigger("liszt:updated");
									 $('#subject_thu_10_12').append($("<option></option>").attr("value","").text("No Result!"));
			 						 $('#subject_thu_10_12').val('').trigger("liszt:updated");

									 $('#subject_thu_1_2').empty();
									 $('#subject_thu_1_2').val('').trigger("liszt:updated");
			 						 $('#subject_thu_1_2').append($("<option></option>").attr("value","").text("No Result!"));

			  						$('#subject_thu_2_4').empty();
									 $('#subject_thu_2_4').val('').trigger("liszt:updated");
									 $('#subject_thu_2_4').append($("<option></option>").attr("value","").text("No Result!"));
//			 						 $('#item').val('').trigger("liszt:updated");

									 $('#subject_thu_4_5').empty();
									 $('#subject_thu_4_5').val('').trigger("liszt:updated");
									 $('#subject_thu_4_5').append($("<option></option>").attr("value","").text("No Result!"));
//			 						 $('#item').val('').trigger("liszt:updated");

									 $('#subject_thu_5_7').empty();
									 $('#subject_thu_5_7').val('').trigger("liszt:updated");
									 $('#subject_thu_5_7').append($("<option></option>").attr("value","").text("No Result!"));
//			 						 $('#item').val('').trigger("liszt:updated");

									 $('#subject_thu_7_8_1').empty();
									 $('#subject_thu_7_8_1').val('').trigger("liszt:updated");
									 $('#subject_thu_7_8_1').append($("<option></option>").attr("value","").text("No Result!"));
//			 						 $('#item').val('').trigger("liszt:updated");

										$('#subject_fri_7_8').empty();
										 $('#subject_fri_7_8').val('').trigger("liszt:updated");
				 						 $('#subject_fri_7_8').append($("<option></option>").attr("value","").text("No Result!"));
				  						$('#subject_fri_7_8').val('').trigger("liszt:updated");
				  						
				  						$('#subject_fri_8_10').empty();
										 $('#subject_fri_8_10').val('').trigger("liszt:updated");
										 $('#subject_fri_8_10').append($("<option></option>").attr("value","").text("No Result!"));
				 						 $('#subject_fri_8_10').val('').trigger("liszt:updated");

										 $('#subject_fri_10_12').empty();
										 $('#subject_fri_10_12').val('').trigger("liszt:updated");
										 $('#subject_fri_10_12').append($("<option></option>").attr("value","").text("No Result!"));
				 						 $('#subject_fri_10_12').val('').trigger("liszt:updated");

										 $('#subject_fri_1_2').empty();
										 $('#subject_fri_1_2').val('').trigger("liszt:updated");
				 						 $('#subject_fri_1_2').append($("<option></option>").attr("value","").text("No Result!"));

				  						$('#subject_fri_2_4').empty();
										 $('#subject_fri_2_4').val('').trigger("liszt:updated");
										 $('#subject_fri_2_4').append($("<option></option>").attr("value","").text("No Result!"));
//				 						 $('#item').val('').trigger("liszt:updated");

										 $('#subject_fri_4_5').empty();
										 $('#subject_fri_4_5').val('').trigger("liszt:updated");
										 $('#subject_fri_4_5').append($("<option></option>").attr("value","").text("No Result!"));
//				 						 $('#item').val('').trigger("liszt:updated");

										 $('#subject_fri_5_7').empty();
										 $('#subject_fri_5_7').val('').trigger("liszt:updated");
										 $('#subject_fri_5_7').append($("<option></option>").attr("value","").text("No Result!"));
//				 						 $('#item').val('').trigger("liszt:updated");

										 $('#subject_fri_7_8_1').empty();
										 $('#subject_fri_7_8_1').val('').trigger("liszt:updated");
										 $('#subject_fri_7_8_1').append($("<option></option>").attr("value","").text("No Result!"));
//				 						 $('#item').val('').trigger("liszt:updated");

											$('#subject_sat_7_8').empty();
											 $('#subject_sat_7_8').val('').trigger("liszt:updated");
					 						 $('#subject_sat_7_8').append($("<option></option>").attr("value","").text("No Result!"));
					  						$('#subject_sat_7_8').val('').trigger("liszt:updated");
					  						
					  						$('#subject_sat_8_10').empty();
											 $('#subject_sat_8_10').val('').trigger("liszt:updated");
											 $('#subject_sat_8_10').append($("<option></option>").attr("value","").text("No Result!"));
					 						 $('#subject_sat_8_10').val('').trigger("liszt:updated");

											 $('#subject_sat_10_12').empty();
											 $('#subject_sat_10_12').val('').trigger("liszt:updated");
											 $('#subject_sat_10_12').append($("<option></option>").attr("value","").text("No Result!"));
					 						 $('#subject_sat_10_12').val('').trigger("liszt:updated");

											 $('#subject_sat_1_2').empty();
											 $('#subject_sat_1_2').val('').trigger("liszt:updated");
					 						 $('#subject_sat_1_2').append($("<option></option>").attr("value","").text("No Result!"));

					  						$('#subject_sat_2_4').empty();
											 $('#subject_sat_2_4').val('').trigger("liszt:updated");
											 $('#subject_sat_2_4').append($("<option></option>").attr("value","").text("No Result!"));
//					 						 $('#item').val('').trigger("liszt:updated");

											 $('#subject_sat_4_5').empty();
											 $('#subject_sat_4_5').val('').trigger("liszt:updated");
											 $('#subject_sat_4_5').append($("<option></option>").attr("value","").text("No Result!"));
//					 						 $('#item').val('').trigger("liszt:updated");

											 $('#subject_sat_5_7').empty();
											 $('#subject_sat_5_7').val('').trigger("liszt:updated");
											 $('#subject_sat_5_7').append($("<option></option>").attr("value","").text("No Result!"));
//					 						 $('#item').val('').trigger("liszt:updated");

											 $('#subject_sat_7_8_1').empty();
											 $('#subject_sat_7_8_1').val('').trigger("liszt:updated");
											 $('#subject_sat_7_8_1').append($("<option></option>").attr("value","").text("No Result!"));
//					 						 $('#item').val('').trigger("liszt:updated");

												$('#subject_sun_7_8').empty();
												 $('#subject_sun_7_8').val('').trigger("liszt:updated");
						 						 $('#subject_sun_7_8').append($("<option></option>").attr("value","").text("No Result!"));
						  						$('#subject_sun_7_8').val('').trigger("liszt:updated");
						  						
						  						$('#subject_sun_8_10').empty();
												 $('#subject_sun_8_10').val('').trigger("liszt:updated");
												 $('#subject_sun_8_10').append($("<option></option>").attr("value","").text("No Result!"));
						 						 $('#subject_sun_8_10').val('').trigger("liszt:updated");

												 $('#subject_sun_10_12').empty();
												 $('#subject_sun_10_12').val('').trigger("liszt:updated");
												 $('#subject_sun_10_12').append($("<option></option>").attr("value","").text("No Result!"));
						 						 $('#subject_sun_10_12').val('').trigger("liszt:updated");

												 $('#subject_sun_1_2').empty();
												 $('#subject_sun_1_2').val('').trigger("liszt:updated");
						 						 $('#subject_sun_1_2').append($("<option></option>").attr("value","").text("No Result!"));

						  						$('#subject_sun_2_4').empty();
												 $('#subject_sun_2_4').val('').trigger("liszt:updated");
												 $('#subject_sun_2_4').append($("<option></option>").attr("value","").text("No Result!"));
//						 						 $('#item').val('').trigger("liszt:updated");

												 $('#subject_sun_4_5').empty();
												 $('#subject_sun_4_5').val('').trigger("liszt:updated");
												 $('#subject_sun_4_5').append($("<option></option>").attr("value","").text("No Result!"));
//						 						 $('#item').val('').trigger("liszt:updated");

												 $('#subject_sun_5_7').empty();
												 $('#subject_sun_5_7').val('').trigger("liszt:updated");
												 $('#subject_sun_5_7').append($("<option></option>").attr("value","").text("No Result!"));
//						 						 $('#item').val('').trigger("liszt:updated");

												 $('#subject_sun_7_8_1').empty();
												 $('#subject_sun_7_8_1').val('').trigger("liszt:updated");
												 $('#subject_sun_7_8_1').append($("<option></option>").attr("value","").text("No Result!"));
//						 						 $('#item').val('').trigger("liszt:updated");
					}
				},
				error:function(){
				}
			});
		}


/// teacher mon78

	<?php $url_teacher_mon_7_8_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-mon78')); ?>
	function getTeacheMon78Filter(){
		var subject_id=$("#subject_mon_7_8").val();
			$.ajax({
				url:"<?php echo $url_teacher_mon_7_8_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachermon78 = $.parseJSON(data);
					//alert(data);
					if(teachermon78){
						$('#teacher_mon_7_8').empty();
						 $('#teacher_mon_7_8').val('').trigger("liszt:updated");
						 $('#teacher_mon_7_8').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachermon78.length; index++) {
							
								$('#teacher_mon_7_8').append($("<option></option>").attr("value",teachermon78[index-1]['teacher_id']).text(teachermon78[index-1]['teacher_name'])); 
								//$("select#subject_mon_7_8").find("option#subject_mon_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_mon_7_8').val('').trigger("liszt:updated");

					}else{
						$('#teacher_mon_7_8').empty();
						 $('#teacher_mon_7_8').val('').trigger("liszt:updated");
						 $('#teacher_mon_7_8').append($("<option></option>").attr("value","").text("Noresult"));
						              
						$('#teacher_mon_7_8').val('').trigger("liszt:updated");
					}
				},
				error:function(){
					//alert('no');
				}
			});
		}


	////******************
	<?php $url_teacher_tue_7_8_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachertue78')); ?>
	function getTeachetue78Filter(){
		var subject_id=$("#subject_tue_7_8").val();
			$.ajax({
				url:"<?php echo $url_teacher_tue_7_8_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachertue78 = $.parseJSON(data);
					//alert(data);
					if(teachertue78){
						$('#teacher_tue_7_8').empty();
						 $('#teacher_tue_7_8').val('').trigger("liszt:updated");
						 $('#teacher_tue_7_8').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachertue78.length; index++) {
							
								$('#teacher_tue_7_8').append($("<option></option>").attr("value",teachertue78[index-1]['teacher_id']).text(teachertue78[index-1]['teacher_name'])); 
								//$("select#subject_tue_7_8").find("option#subject_tue_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_tue_7_8').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}
	
	<?php $url_teacher_wed_7_8_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherwed78')); ?>
	function getTeachewed78Filter(){
		var subject_id=$("#subject_wed_7_8").val();
			$.ajax({
				url:"<?php echo $url_teacher_wed_7_8_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherwed78 = $.parseJSON(data);
					//alert(data);
					if(teacherwed78){
						$('#teacher_wed_7_8').empty();
						 $('#teacher_wed_7_8').val('').trigger("liszt:updated");
						 $('#teacher_wed_7_8').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherwed78.length; index++) {
							
								$('#teacher_wed_7_8').append($("<option></option>").attr("value",teacherwed78[index-1]['teacher_id']).text(teacherwed78[index-1]['teacher_name'])); 
								//$("select#subject_wed_7_8").find("option#subject_wed_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_wed_7_8').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_thu_7_8_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherthu78')); ?>
	function getTeachethu78Filter(){
		var subject_id=$("#subject_thu_7_8").val();
			$.ajax({
				url:"<?php echo $url_teacher_thu_7_8_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherthu78 = $.parseJSON(data);
					//alert(data);
					if(teacherthu78){
						$('#teacher_thu_7_8').empty();
						 $('#teacher_thu_7_8').val('').trigger("liszt:updated");
						 $('#teacher_thu_7_8').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherthu78.length; index++) {
							
								$('#teacher_thu_7_8').append($("<option></option>").attr("value",teacherthu78[index-1]['teacher_id']).text(teacherthu78[index-1]['teacher_name'])); 
								//$("select#subject_thu_7_8").find("option#subject_thu_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_thu_7_8').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_fri_7_8_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherfri78')); ?>
	function getTeachefri78Filter(){
		var subject_id=$("#subject_fri_7_8").val();
			$.ajax({
				url:"<?php echo $url_teacher_fri_7_8_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherfri78 = $.parseJSON(data);
					//alert(data);
					if(teacherfri78){
						$('#teacher_fri_7_8').empty();
						 $('#teacher_fri_7_8').val('').trigger("liszt:updated");
						 $('#teacher_fri_7_8').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherfri78.length; index++) {
							
								$('#teacher_fri_7_8').append($("<option></option>").attr("value",teacherfri78[index-1]['teacher_id']).text(teacherfri78[index-1]['teacher_name'])); 
								//$("select#subject_fri_7_8").find("option#subject_fri_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_fri_7_8').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_sat_7_8_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachersat78')); ?>
	function getTeachesat78Filter(){
		var subject_id=$("#subject_sat_7_8").val();
			$.ajax({
				url:"<?php echo $url_teacher_sat_7_8_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachersat78 = $.parseJSON(data);
					//alert(data);
					if(teachersat78){
						$('#teacher_sat_7_8').empty();
						 $('#teacher_sat_7_8').val('').trigger("liszt:updated");
						 $('#teacher_sat_7_8').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachersat78.length; index++) {
							
								$('#teacher_sat_7_8').append($("<option></option>").attr("value",teachersat78[index-1]['teacher_id']).text(teachersat78[index-1]['teacher_name'])); 
								//$("select#subject_sat_7_8").find("option#subject_sat_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_sat_7_8').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_sun_7_8_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachersun78')); ?>
	function getTeachesun78Filter(){
		var subject_id=$("#subject_sun_7_8").val();
			$.ajax({
				url:"<?php echo $url_teacher_sun_7_8_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachersun78 = $.parseJSON(data);
					//alert(data);
					if(teachersun78){
						$('#teacher_sun_7_8').empty();
						 $('#teacher_sun_7_8').val('').trigger("liszt:updated");
						 $('#teacher_sun_7_8').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachersun78.length; index++) {
							
								$('#teacher_sun_7_8').append($("<option></option>").attr("value",teachersun78[index-1]['teacher_id']).text(teachersun78[index-1]['teacher_name'])); 
								//$("select#subject_sun_7_8").find("option#subject_sun_7_8[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_sun_7_8').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_mon_8_10_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachermon810')); ?>
	function getTeacheMon810Filter(){
		var subject_id=$("#subject_mon_8_10").val();
			$.ajax({
				url:"<?php echo $url_teacher_mon_8_10_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachermon810 = $.parseJSON(data);
					//alert(data);
					if(teachermon810){
						$('#teacher_mon_8_10').empty();
						 $('#teacher_mon_8_10').val('').trigger("liszt:updated");
						 $('#teacher_mon_8_10').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachermon810.length; index++) {
							
								$('#teacher_mon_8_10').append($("<option></option>").attr("value",teachermon810[index-1]['teacher_id']).text(teachermon810[index-1]['teacher_name'])); 
								//$("select#subject_mon_8_10").find("option#subject_mon_8_10[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_mon_8_10').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_tue_8_10_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachertue810')); ?>
	function getTeachetue810Filter(){
		var subject_id=$("#subject_tue_8_10").val();
			$.ajax({
				url:"<?php echo $url_teacher_tue_8_10_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachertue810 = $.parseJSON(data);
					//alert(data);
					if(teachertue810){
						$('#teacher_tue_8_10').empty();
						 $('#teacher_tue_8_10').val('').trigger("liszt:updated");
						 $('#teacher_tue_8_10').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachertue810.length; index++) {
							
								$('#teacher_tue_8_10').append($("<option></option>").attr("value",teachertue810[index-1]['teacher_id']).text(teachertue810[index-1]['teacher_name'])); 
								//$("select#subject_tue_8_10").find("option#subject_tue_8_10[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_tue_8_10').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_wed_8_10_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherwed810')); ?>
	function getTeachewed810Filter(){
		var subject_id=$("#subject_wed_8_10").val();
			$.ajax({
				url:"<?php echo $url_teacher_wed_8_10_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherwed810 = $.parseJSON(data);
					//alert(data);
					if(teacherwed810){
						$('#teacher_wed_8_10').empty();
						 $('#teacher_wed_8_10').val('').trigger("liszt:updated");
						 $('#teacher_wed_8_10').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherwed810.length; index++) {
							
								$('#teacher_wed_8_10').append($("<option></option>").attr("value",teacherwed810[index-1]['teacher_id']).text(teacherwed810[index-1]['teacher_name'])); 
								//$("select#subject_wed_8_10").find("option#subject_wed_8_10[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_wed_8_10').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_thu_8_10_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherthu810')); ?>
	function getTeachethu810Filter(){
		var subject_id=$("#subject_thu_8_10").val();
			$.ajax({
				url:"<?php echo $url_teacher_thu_8_10_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherthu810 = $.parseJSON(data);
					//alert(data);
					if(teacherthu810){
						$('#teacher_thu_8_10').empty();
						 $('#teacher_thu_8_10').val('').trigger("liszt:updated");
						 $('#teacher_thu_8_10').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherthu810.length; index++) {
							
								$('#teacher_thu_8_10').append($("<option></option>").attr("value",teacherthu810[index-1]['teacher_id']).text(teacherthu810[index-1]['teacher_name'])); 
								//$("select#subject_thu_8_10").find("option#subject_thu_8_10[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_thu_8_10').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}
	
	//*****************************

	<?php $url_teacher_fri_8_10_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherfri810')); ?>
	function getTeachefri810Filter(){
		var subject_id=$("#subject_fri_8_10").val();
			$.ajax({
				url:"<?php echo $url_teacher_fri_8_10_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherfri810 = $.parseJSON(data);
					//alert(data);
					if(teacherfri810){
						$('#teacher_fri_8_10').empty();
						 $('#teacher_fri_8_10').val('').trigger("liszt:updated");
						 $('#teacher_fri_8_10').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherfri810.length; index++) {
							
								$('#teacher_fri_8_10').append($("<option></option>").attr("value",teacherfri810[index-1]['teacher_id']).text(teacherfri810[index-1]['teacher_name'])); 
								//$("select#subject_fri_8_10").find("option#subject_fri_8_10[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_fri_8_10').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_sat_8_10_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachersat810')); ?>
	function getTeachesat810Filter(){
		var subject_id=$("#subject_sat_8_10").val();
			$.ajax({
				url:"<?php echo $url_teacher_sat_8_10_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachersat810 = $.parseJSON(data);
					//alert(data);
					if(teachersat810){
						$('#teacher_sat_8_10').empty();
						 $('#teacher_sat_8_10').val('').trigger("liszt:updated");
						 $('#teacher_sat_8_10').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachersat810.length; index++) {
							
								$('#teacher_sat_8_10').append($("<option></option>").attr("value",teachersat810[index-1]['teacher_id']).text(teachersat810[index-1]['teacher_name'])); 
								//$("select#subject_sat_8_10").find("option#subject_sat_8_10[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_sat_8_10').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_sun_8_10_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachersun810')); ?>
	function getTeachesun810Filter(){
		var subject_id=$("#subject_sun_8_10").val();
			$.ajax({
				url:"<?php echo $url_teacher_sun_8_10_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachersun810 = $.parseJSON(data);
					//alert(data);
					if(teachersun810){
						$('#teacher_sun_8_10').empty();
						 $('#teacher_sun_8_10').val('').trigger("liszt:updated");
						 $('#teacher_sun_8_10').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachersun810.length; index++) {
							
								$('#teacher_sun_8_10').append($("<option></option>").attr("value",teachersun810[index-1]['teacher_id']).text(teachersun810[index-1]['teacher_name'])); 
								//$("select#subject_sun_8_10").find("option#subject_sun_8_10[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_sun_8_10').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}
	<?php $url_teacher_mon_10_12_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachermon1012')); ?>
	function getTeacheMon1012Filter(){
		var subject_id=$("#subject_mon_10_12").val();
			$.ajax({
				url:"<?php echo $url_teacher_mon_10_12_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachermon1012 = $.parseJSON(data);
					//alert(data);
					if(teachermon1012){
						$('#teacher_mon_10_12').empty();
						 $('#teacher_mon_10_12').val('').trigger("liszt:updated");
						 $('#teacher_mon_10_12').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachermon1012.length; index++) {
							
								$('#teacher_mon_10_12').append($("<option></option>").attr("value",teachermon1012[index-1]['teacher_id']).text(teachermon1012[index-1]['teacher_name'])); 
								//$("select#subject_mon_10_12").find("option#subject_mon_10_12[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_mon_10_12').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

////******************

	<?php $url_teacher_tue_10_12_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachertue1012')); ?>
	function getTeachetue1012Filter(){
		var subject_id=$("#subject_tue_10_12").val();
			$.ajax({
				url:"<?php echo $url_teacher_tue_10_12_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachertue1012 = $.parseJSON(data);
					//alert(data);
					if(teachertue1012){
						$('#teacher_tue_10_12').empty();
						 $('#teacher_tue_10_12').val('').trigger("liszt:updated");
						 $('#teacher_tue_10_12').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachertue1012.length; index++) {
							
								$('#teacher_tue_10_12').append($("<option></option>").attr("value",teachertue1012[index-1]['teacher_id']).text(teachertue1012[index-1]['teacher_name'])); 
								//$("select#subject_tue_10_12").find("option#subject_tue_10_12[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_tue_10_12').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	//*****************************

	<?php $url_teacher_wed_10_12_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherwed1012')); ?>
	function getTeachewed1012Filter(){
		var subject_id=$("#subject_wed_10_12").val();
			$.ajax({
				url:"<?php echo $url_teacher_wed_10_12_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherwed1012 = $.parseJSON(data);
					//alert(data);
					if(teacherwed1012){
						$('#teacher_wed_10_12').empty();
						 $('#teacher_wed_10_12').val('').trigger("liszt:updated");
						 $('#teacher_wed_10_12').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherwed1012.length; index++) {
							
								$('#teacher_wed_10_12').append($("<option></option>").attr("value",teacherwed1012[index-1]['teacher_id']).text(teacherwed1012[index-1]['teacher_name'])); 
								//$("select#subject_wed_10_12").find("option#subject_wed_10_12[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_wed_10_12').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}
	<?php $url_teacher_thu_10_12_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherthu1012')); ?>
	function getTeachethu1012Filter(){
		var subject_id=$("#subject_thu_10_12").val();
			$.ajax({
				url:"<?php echo $url_teacher_thu_10_12_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					getTeachethu1012 = $.parseJSON(data);
					//alert(data);
					if(getTeachethu1012){
						$('#teacher_thu_10_12').empty();
						 $('#teacher_thu_10_12').val('').trigger("liszt:updated");
						 $('#teacher_thu_10_12').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= getTeachethu1012.length; index++) {
							
								$('#teacher_thu_10_12').append($("<option></option>").attr("value",getTeachethu1012[index-1]['teacher_id']).text(getTeachethu1012[index-1]['teacher_name'])); 
								//$("select#subject_thu_10_12").find("option#subject_thu_10_12[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_thu_10_12').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_fri_10_12_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherfri1012')); ?>
	function getTeachefri1012Filter(){
		var subject_id=$("#subject_fri_10_12").val();
			$.ajax({
				url:"<?php echo $url_teacher_fri_10_12_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherfri1012 = $.parseJSON(data);
					//alert(data);
					if(teacherfri1012){
						$('#teacher_fri_10_12').empty();
						 $('#teacher_fri_10_12').val('').trigger("liszt:updated");
						 $('#teacher_fri_10_12').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherfri1012.length; index++) {
							
								$('#teacher_fri_10_12').append($("<option></option>").attr("value",teacherfri1012[index-1]['teacher_id']).text(teacherfri1012[index-1]['teacher_name'])); 
								//$("select#subject_fri_10_12").find("option#subject_fri_10_12[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_fri_10_12').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_sat_10_12_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachersat1012')); ?>
	function getTeachesat1012Filter(){
		var subject_id=$("#subject_sat_10_12").val();
			$.ajax({
				url:"<?php echo $url_teacher_sat_10_12_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachersat1012 = $.parseJSON(data);
					//alert(data);
					if(teachersat1012){
						$('#teacher_sat_10_12').empty();
						 $('#teacher_sat_10_12').val('').trigger("liszt:updated");
						 $('#teacher_sat_10_12').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachersat1012.length; index++) {
							
								$('#teacher_sat_10_12').append($("<option></option>").attr("value",teachersat1012[index-1]['teacher_id']).text(teachersat1012[index-1]['teacher_name'])); 
								//$("select#subject_sat_10_12").find("option#subject_sat_10_12[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_sat_10_12').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_sun_10_12_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachersun1012')); ?>
	function getTeachesun1012Filter(){
		var subject_id=$("#subject_sun_10_12").val();
			$.ajax({
				url:"<?php echo $url_teacher_sun_10_12_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachersun1012 = $.parseJSON(data);
					//alert(data);
					if(teachersun1012){
						$('#teacher_sun_10_12').empty();
						 $('#teacher_sun_10_12').val('').trigger("liszt:updated");
						 $('#teacher_sun_10_12').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachersun1012.length; index++) {
							
								$('#teacher_sun_10_12').append($("<option></option>").attr("value",teachersun1012[index-1]['teacher_id']).text(teachersun1012[index-1]['teacher_name'])); 
								//$("select#subject_sun_10_12").find("option#subject_sun_10_12[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_sun_10_12').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}


	//******************************************************************************************************************************************

	<?php $url_teacher_mon_1_2_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachermon12')); ?>
	function getTeacheMon12Filter(){
		var subject_id=$("#subject_mon_1_2").val();
			$.ajax({
				url:"<?php echo $url_teacher_mon_1_2_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachermon12 = $.parseJSON(data);
					//alert(data);
					if(teachermon12){
						$('#teacher_mon_1_2').empty();
						 $('#teacher_mon_1_2').val('').trigger("liszt:updated");
						 $('#teacher_mon_1_2').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachermon12.length; index++) {
							
								$('#teacher_mon_1_2').append($("<option></option>").attr("value",teachermon12[index-1]['teacher_id']).text(teachermon12[index-1]['teacher_name'])); 
								//$("select#subject_mon_1_2").find("option#subject_mon_1_2[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_mon_1_2').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}


	////******************

	<?php $url_teacher_tue_1_2_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachertue12')); ?>
	function getTeachetue12Filter(){
		var subject_id=$("#subject_tue_1_2").val();
			$.ajax({
				url:"<?php echo $url_teacher_tue_1_2_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachertue12 = $.parseJSON(data);
					//alert(data);
					if(teachertue12){
						$('#teacher_tue_1_2').empty();
						 $('#teacher_tue_1_2').val('').trigger("liszt:updated");
						 $('#teacher_tue_1_2').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachertue12.length; index++) {
							
								$('#teacher_tue_1_2').append($("<option></option>").attr("value",teachertue12[index-1]['teacher_id']).text(teachertue12[index-1]['teacher_name'])); 
								//$("select#subject_tue_1_2").find("option#subject_tue_1_2[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_tue_1_2').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}
	//*****************************

	<?php $url_teacher_wed_1_2_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherwed12')); ?>
	function getTeachewed12Filter(){
		var subject_id=$("#subject_wed_1_2").val();
			$.ajax({
				url:"<?php echo $url_teacher_wed_1_2_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherwed12 = $.parseJSON(data);
					//alert(data);
					if(teacherwed12){
						$('#teacher_wed_1_2').empty();
						 $('#teacher_wed_1_2').val('').trigger("liszt:updated");
						 $('#teacher_wed_1_2').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherwed12.length; index++) {
							
								$('#teacher_wed_1_2').append($("<option></option>").attr("value",teacherwed12[index-1]['teacher_id']).text(teacherwed12[index-1]['teacher_name'])); 
								//$("select#subject_wed_1_2").find("option#subject_wed_1_2[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_wed_1_2').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_thu_1_2_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherthu12')); ?>
	function getTeachethu12Filter(){
		var subject_id=$("#subject_thu_1_2").val();
			$.ajax({
				url:"<?php echo $url_teacher_thu_1_2_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherthu12 = $.parseJSON(data);
					//alert(data);
					if(teacherthu12){
						$('#teacher_thu_1_2').empty();
						 $('#teacher_thu_1_2').val('').trigger("liszt:updated");
						 $('#teacher_thu_1_2').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherthu12.length; index++) {
							
								$('#teacher_thu_1_2').append($("<option></option>").attr("value",teacherthu12[index-1]['teacher_id']).text(teacherthu12[index-1]['teacher_name'])); 
								//$("select#subject_thu_1_2").find("option#subject_thu_1_2[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_thu_1_2').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_fri_1_2_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherfri12')); ?>
	function getTeachefri12Filter(){
		var subject_id=$("#subject_fri_1_2").val();
			$.ajax({
				url:"<?php echo $url_teacher_fri_1_2_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherfri12 = $.parseJSON(data);
					//alert(data);
					if(teacherfri12){
						$('#teacher_fri_1_2').empty();
						 $('#teacher_fri_1_2').val('').trigger("liszt:updated");
						 $('#teacher_fri_1_2').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherfri12.length; index++) {
							
								$('#teacher_fri_1_2').append($("<option></option>").attr("value",teacherfri12[index-1]['teacher_id']).text(teacherfri12[index-1]['teacher_name'])); 
								//$("select#subject_fri_1_2").find("option#subject_fri_1_2[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_fri_1_2').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_sat_1_2_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachersat12')); ?>
	function getTeachesat12Filter(){
		var subject_id=$("#subject_sat_1_2").val();
			$.ajax({
				url:"<?php echo $url_teacher_sat_1_2_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachersat12 = $.parseJSON(data);
					//alert(data);
					if(teachersat12){
						$('#teacher_sat_1_2').empty();
						 $('#teacher_sat_1_2').val('').trigger("liszt:updated");
						 $('#teacher_sat_1_2').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachersat12.length; index++) {
							
								$('#teacher_sat_1_2').append($("<option></option>").attr("value",teachersat12[index-1]['teacher_id']).text(teachersat12[index-1]['teacher_name'])); 
								//$("select#subject_sat_1_2").find("option#subject_sat_1_2[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_sat_1_2').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_sun_1_2_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachersun12')); ?>
	function getTeachesun12Filter(){
		var subject_id=$("#subject_sun_1_2").val();
			$.ajax({
				url:"<?php echo $url_teacher_sun_1_2_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachersun12 = $.parseJSON(data);
					//alert(data);
					if(teachersun12){
						$('#teacher_sun_1_2').empty();
						 $('#teacher_sun_1_2').val('').trigger("liszt:updated");
						 $('#teacher_sun_1_2').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachersun12.length; index++) {
							
								$('#teacher_sun_1_2').append($("<option></option>").attr("value",teachersun12[index-1]['teacher_id']).text(teachersun12[index-1]['teacher_name'])); 
								//$("select#subject_sun_1_2").find("option#subject_sun_1_2[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_sun_1_2').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	/// teacher mon78

	<?php $url_teacher_mon_2_4_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachermon24')); ?>
	function getTeacheMon24Filter(){
		var subject_id=$("#subject_mon_2_4").val();
			$.ajax({
				url:"<?php echo $url_teacher_mon_2_4_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachermon24 = $.parseJSON(data);
					//alert(data);
					if(teachermon24){
						$('#teacher_mon_2_4').empty();
						 $('#teacher_mon_2_4').val('').trigger("liszt:updated");
						 $('#teacher_mon_2_4').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachermon24.length; index++) {
							
								$('#teacher_mon_2_4').append($("<option></option>").attr("value",teachermon24[index-1]['teacher_id']).text(teachermon24[index-1]['teacher_name'])); 
								//$("select#subject_mon_2_4").find("option#subject_mon_2_4[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_mon_2_4').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}


	////******************

	<?php $url_teacher_tue_2_4_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachertue24')); ?>
	function getTeachetue24Filter(){
		var subject_id=$("#subject_tue_2_4").val();
			$.ajax({
				url:"<?php echo $url_teacher_tue_2_4_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachertue24 = $.parseJSON(data);
					//alert(data);
					if(teachertue24){
						$('#teacher_tue_2_4').empty();
						 $('#teacher_tue_2_4').val('').trigger("liszt:updated");
						 $('#teacher_tue_2_4').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachertue24.length; index++) {
							
								$('#teacher_tue_2_4').append($("<option></option>").attr("value",teachertue24[index-1]['teacher_id']).text(teachertue24[index-1]['teacher_name'])); 
								//$("select#subject_tue_2_4").find("option#subject_tue_2_4[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_tue_2_4').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}
	//*****************************

	<?php $url_teacher_wed_2_4_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherwed24')); ?>
	function getTeachewed24Filter(){
		var subject_id=$("#subject_wed_2_4").val();
			$.ajax({
				url:"<?php echo $url_teacher_wed_2_4_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherwed24 = $.parseJSON(data);
					//alert(data);
					if(teacherwed24){
						$('#teacher_wed_2_4').empty();
						 $('#teacher_wed_2_4').val('').trigger("liszt:updated");
						 $('#teacher_wed_2_4').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherwed24.length; index++) {
							
								$('#teacher_wed_2_4').append($("<option></option>").attr("value",teacherwed24[index-1]['teacher_id']).text(teacherwed24[index-1]['teacher_name'])); 
								//$("select#subject_wed_2_4").find("option#subject_wed_2_4[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_wed_2_4').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_thu_2_4_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherthu24')); ?>
	function getTeachethu24Filter(){
		var subject_id=$("#subject_thu_2_4").val();
			$.ajax({
				url:"<?php echo $url_teacher_thu_2_4_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherthu24 = $.parseJSON(data);
					//alert(data);
					if(teacherthu24){
						$('#teacher_thu_2_4').empty();
						 $('#teacher_thu_2_4').val('').trigger("liszt:updated");
						 $('#teacher_thu_2_4').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherthu24.length; index++) {
							
								$('#teacher_thu_2_4').append($("<option></option>").attr("value",teacherthu24[index-1]['teacher_id']).text(teacherthu24[index-1]['teacher_name'])); 
								//$("select#subject_thu_2_4").find("option#subject_thu_2_4[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_thu_2_4').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_fri_2_4_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherfri24')); ?>
	function getTeachefri24Filter(){
		var subject_id=$("#subject_fri_2_4").val();
			$.ajax({
				url:"<?php echo $url_teacher_fri_2_4_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherfri24 = $.parseJSON(data);
					//alert(data);
					if(teacherfri24){
						$('#teacher_fri_2_4').empty();
						 $('#teacher_fri_2_4').val('').trigger("liszt:updated");
						 $('#teacher_fri_2_4').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherfri24.length; index++) {
							
								$('#teacher_fri_2_4').append($("<option></option>").attr("value",teacherfri24[index-1]['teacher_id']).text(teacherfri24[index-1]['teacher_name'])); 
								//$("select#subject_fri_2_4").find("option#subject_fri_2_4[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_fri_2_4').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_sat_2_4_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachersat24')); ?>
	function getTeachesat24Filter(){
		var subject_id=$("#subject_sat_2_4").val();
			$.ajax({
				url:"<?php echo $url_teacher_sat_2_4_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachersat24 = $.parseJSON(data);
					//alert(data);
					if(teachersat24){
						$('#teacher_sat_2_4').empty();
						 $('#teacher_sat_2_4').val('').trigger("liszt:updated");
						 $('#teacher_sat_2_4').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachersat24.length; index++) {
							
								$('#teacher_sat_2_4').append($("<option></option>").attr("value",teachersat24[index-1]['teacher_id']).text(teachersat24[index-1]['teacher_name'])); 
								//$("select#subject_sat_2_4").find("option#subject_sat_2_4[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_sat_2_4').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_sun_2_4_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachersun24')); ?>
	function getTeachesun24Filter(){
		var subject_id=$("#subject_sun_2_4").val();
			$.ajax({
				url:"<?php echo $url_teacher_sun_2_4_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachersun24 = $.parseJSON(data);
					//alert(data);
					if(teachersun24){
						$('#teacher_sun_2_4').empty();
						 $('#teacher_sun_2_4').val('').trigger("liszt:updated");
						 $('#teacher_sun_2_4').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachersun24.length; index++) {
							
								$('#teacher_sun_2_4').append($("<option></option>").attr("value",teachersun24[index-1]['teacher_id']).text(teachersun24[index-1]['teacher_name'])); 
								//$("select#subject_sun_2_4").find("option#subject_sun_2_4[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_sun_2_4').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	/// teacher mon78

	<?php $url_teacher_mon_4_5_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachermon45')); ?>
	function getTeacheMon45Filter(){
		var subject_id=$("#subject_mon_4_5").val();
			$.ajax({
				url:"<?php echo $url_teacher_mon_4_5_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachermon45 = $.parseJSON(data);
					//alert(data);
					if(teachermon45){
						$('#teacher_mon_4_5').empty();
						 $('#teacher_mon_4_5').val('').trigger("liszt:updated");
						 $('#teacher_mon_4_5').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachermon45.length; index++) {
							
								$('#teacher_mon_4_5').append($("<option></option>").attr("value",teachermon45[index-1]['teacher_id']).text(teachermon45[index-1]['teacher_name'])); 
								//$("select#subject_mon_4_5").find("option#subject_mon_4_5[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_mon_4_5').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}


	////******************

	<?php $url_teacher_tue_4_5_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachertue45')); ?>
	function getTeachetue45Filter(){
		var subject_id=$("#subject_tue_4_5").val();
			$.ajax({
				url:"<?php echo $url_teacher_tue_4_5_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachertue45 = $.parseJSON(data);
					//alert(data);
					if(teachertue45){
						$('#teacher_tue_4_5').empty();
						 $('#teacher_tue_4_5').val('').trigger("liszt:updated");
						 $('#teacher_tue_4_5').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachertue45.length; index++) {
							
								$('#teacher_tue_4_5').append($("<option></option>").attr("value",teachertue45[index-1]['teacher_id']).text(teachertue45[index-1]['teacher_name'])); 
								//$("select#subject_tue_4_5").find("option#subject_tue_4_5[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_tue_4_5').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}
	//*****************************

	<?php $url_teacher_wed_4_5_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherwed45')); ?>
	function getTeachewed45Filter(){
		var subject_id=$("#subject_wed_4_5").val();
			$.ajax({
				url:"<?php echo $url_teacher_wed_4_5_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherwed45 = $.parseJSON(data);
					//alert(data);
					if(teacherwed45){
						$('#teacher_wed_4_5').empty();
						 $('#teacher_wed_4_5').val('').trigger("liszt:updated");
						 $('#teacher_wed_4_5').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherwed45.length; index++) {
							
								$('#teacher_wed_4_5').append($("<option></option>").attr("value",teacherwed45[index-1]['teacher_id']).text(teacherwed45[index-1]['teacher_name'])); 
								//$("select#subject_wed_4_5").find("option#subject_wed_4_5[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_wed_4_5').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_thu_4_5_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherthu45')); ?>
	function getTeachethu45Filter(){
		var subject_id=$("#subject_thu_4_5").val();
			$.ajax({
				url:"<?php echo $url_teacher_thu_4_5_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherthu45 = $.parseJSON(data);
					//alert(data);
					if(teacherthu45){
						$('#teacher_thu_4_5').empty();
						 $('#teacher_thu_4_5').val('').trigger("liszt:updated");
						 $('#teacher_thu_4_5').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherthu45.length; index++) {
							
								$('#teacher_thu_4_5').append($("<option></option>").attr("value",teacherthu45[index-1]['teacher_id']).text(teacherthu45[index-1]['teacher_name'])); 
								//$("select#subject_thu_4_5").find("option#subject_thu_4_5[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_thu_4_5').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_fri_4_5_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherfri45')); ?>
	function getTeachefri45Filter(){
		var subject_id=$("#subject_fri_4_5").val();
			$.ajax({
				url:"<?php echo $url_teacher_fri_4_5_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherfri45 = $.parseJSON(data);
					//alert(data);
					if(teacherfri45){
						$('#teacher_fri_4_5').empty();
						 $('#teacher_fri_4_5').val('').trigger("liszt:updated");
						 $('#teacher_fri_4_5').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherfri45.length; index++) {
							
								$('#teacher_fri_4_5').append($("<option></option>").attr("value",teacherfri45[index-1]['teacher_id']).text(teacherfri45[index-1]['teacher_name'])); 
								//$("select#subject_fri_4_5").find("option#subject_fri_4_5[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_fri_4_5').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_sat_4_5_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachersat45')); ?>
	function getTeachesat45Filter(){
		var subject_id=$("#subject_sat_4_5").val();
			$.ajax({
				url:"<?php echo $url_teacher_sat_4_5_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachersat45 = $.parseJSON(data);
					//alert(data);
					if(teachersat45){
						$('#teacher_sat_4_5').empty();
						 $('#teacher_sat_4_5').val('').trigger("liszt:updated");
						 $('#teacher_sat_4_5').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachersat45.length; index++) {
							
								$('#teacher_sat_4_5').append($("<option></option>").attr("value",teachersat45[index-1]['teacher_id']).text(teachersat45[index-1]['teacher_name'])); 
								//$("select#subject_sat_4_5").find("option#subject_sat_4_5[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_sat_4_5').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_sun_4_5_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachersun45')); ?>
	function getTeachesun45Filter(){
		var subject_id=$("#subject_sun_4_5").val();
			$.ajax({
				url:"<?php echo $url_teacher_sun_4_5_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachersun45 = $.parseJSON(data);
					//alert(data);
					if(teachersun45){
						$('#teacher_sun_4_5').empty();
						 $('#teacher_sun_4_5').val('').trigger("liszt:updated");
						 $('#teacher_sun_4_5').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachersun45.length; index++) {
							
								$('#teacher_sun_4_5').append($("<option></option>").attr("value",teachersun45[index-1]['teacher_id']).text(teachersun45[index-1]['teacher_name'])); 
								//$("select#subject_sun_4_5").find("option#subject_sun_4_5[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_sun_4_5').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	/// teacher mon78

	<?php $url_teacher_mon_5_7_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachermon57')); ?>
	function getTeacheMon57Filter(){
		var subject_id=$("#subject_mon_5_7").val();
			$.ajax({
				url:"<?php echo $url_teacher_mon_5_7_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachermon57 = $.parseJSON(data);
					//alert(data);
					if(teachermon57){
						$('#teacher_mon_5_7').empty();
						 $('#teacher_mon_5_7').val('').trigger("liszt:updated");
						 $('#teacher_mon_5_7').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachermon57.length; index++) {
							
								$('#teacher_mon_5_7').append($("<option></option>").attr("value",teachermon57[index-1]['teacher_id']).text(teachermon57[index-1]['teacher_name'])); 
								//$("select#subject_mon_5_7").find("option#subject_mon_5_7[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_mon_5_7').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}


	////******************

	<?php $url_teacher_tue_5_7_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachertue57')); ?>
	function getTeachetue57Filter(){
		var subject_id=$("#subject_tue_5_7").val();
			$.ajax({
				url:"<?php echo $url_teacher_tue_5_7_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachertue57 = $.parseJSON(data);
					//alert(data);
					if(teachertue57){
						$('#teacher_tue_5_7').empty();
						 $('#teacher_tue_5_7').val('').trigger("liszt:updated");
						 $('#teacher_tue_5_7').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachertue57.length; index++) {
							
								$('#teacher_tue_5_7').append($("<option></option>").attr("value",teachertue57[index-1]['teacher_id']).text(teachertue57[index-1]['teacher_name'])); 
								//$("select#subject_tue_5_7").find("option#subject_tue_5_7[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_tue_5_7').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}
	//*****************************

	<?php $url_teacher_wed_5_7_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherwed57')); ?>
	function getTeachewed57Filter(){
		var subject_id=$("#subject_wed_5_7").val();
			$.ajax({
				url:"<?php echo $url_teacher_wed_5_7_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherwed57 = $.parseJSON(data);
					//alert(data);
					if(teacherwed57){
						$('#teacher_wed_5_7').empty();
						 $('#teacher_wed_5_7').val('').trigger("liszt:updated");
						 $('#teacher_wed_5_7').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherwed57.length; index++) {
							
								$('#teacher_wed_5_7').append($("<option></option>").attr("value",teacherwed57[index-1]['teacher_id']).text(teacherwed57[index-1]['teacher_name'])); 
								//$("select#subject_wed_5_7").find("option#subject_wed_5_7[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_wed_5_7').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_thu_5_7_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherthu57')); ?>
	function getTeachethu57Filter(){
		var subject_id=$("#subject_thu_5_7").val();
			$.ajax({
				url:"<?php echo $url_teacher_thu_5_7_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherthu57 = $.parseJSON(data);
					//alert(data);
					if(teacherthu57){
						$('#teacher_thu_5_7').empty();
						 $('#teacher_thu_5_7').val('').trigger("liszt:updated");
						 $('#teacher_thu_5_7').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherthu57.length; index++) {
							
								$('#teacher_thu_5_7').append($("<option></option>").attr("value",teacherthu57[index-1]['teacher_id']).text(teacherthu57[index-1]['teacher_name'])); 
								//$("select#subject_thu_5_7").find("option#subject_thu_5_7[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_thu_5_7').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_fri_5_7_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherfri57')); ?>
	function getTeachefri57Filter(){
		var subject_id=$("#subject_fri_5_7").val();
			$.ajax({
				url:"<?php echo $url_teacher_fri_5_7_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherfri57 = $.parseJSON(data);
					//alert(data);
					if(teacherfri57){
						$('#teacher_fri_5_7').empty();
						 $('#teacher_fri_5_7').val('').trigger("liszt:updated");
						 $('#teacher_fri_5_7').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherfri57.length; index++) {
							
								$('#teacher_fri_5_7').append($("<option></option>").attr("value",teacherfri57[index-1]['teacher_id']).text(teacherfri57[index-1]['teacher_name'])); 
								//$("select#subject_fri_5_7").find("option#subject_fri_5_7[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_fri_5_7').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_sat_5_7_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachersat57')); ?>
	function getTeachesat57Filter(){
		var subject_id=$("#subject_sat_5_7").val();
			$.ajax({
				url:"<?php echo $url_teacher_sat_5_7_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachersat57 = $.parseJSON(data);
					//alert(data);
					if(teachersat57){
						$('#teacher_sat_5_7').empty();
						 $('#teacher_sat_5_7').val('').trigger("liszt:updated");
						 $('#teacher_sat_5_7').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachersat57.length; index++) {
							
								$('#teacher_sat_5_7').append($("<option></option>").attr("value",teachersat57[index-1]['teacher_id']).text(teachersat57[index-1]['teacher_name'])); 
								//$("select#subject_sat_5_7").find("option#subject_sat_5_7[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_sat_5_7').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_sun_5_7_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachersun57')); ?>
	function getTeachesun57Filter(){
		var subject_id=$("#subject_sun_5_7").val();
			$.ajax({
				url:"<?php echo $url_teacher_sun_5_7_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachersun57 = $.parseJSON(data);
					//alert(data);
					if(teachersun57){
						$('#teacher_sun_5_7').empty();
						 $('#teacher_sun_5_7').val('').trigger("liszt:updated");
						 $('#teacher_sun_5_7').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachersun57.length; index++) {
							
								$('#teacher_sun_5_7').append($("<option></option>").attr("value",teachersun57[index-1]['teacher_id']).text(teachersun57[index-1]['teacher_name'])); 
								//$("select#subject_sun_5_7").find("option#subject_sun_5_7[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_sun_5_7').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	/// teacher mon78

	<?php $url_teacher_mon_7_8_1_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachermon781')); ?>
	function getTeacheMon781Filter(){
		var subject_id=$("#subject_mon_7_8_1").val();
			$.ajax({
				url:"<?php echo $url_teacher_mon_7_8_1_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachermon781 = $.parseJSON(data);
					//alert(data);
					if(teachermon781){
						$('#teacher_mon_7_8_1').empty();
						 $('#teacher_mon_7_8_1').val('').trigger("liszt:updated");
						 $('#teacher_mon_7_8_1').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachermon781.length; index++) {
							
								$('#teacher_mon_7_8_1').append($("<option></option>").attr("value",teachermon781[index-1]['teacher_id']).text(teachermon781[index-1]['teacher_name'])); 
								//$("select#subject_mon_7_8_1").find("option#subject_mon_7_8_1[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_mon_7_8_1').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}


	////******************

	<?php $url_teacher_tue_7_8_1_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachertue781')); ?>
	function getTeachetue781Filter(){
		var subject_id=$("#subject_tue_7_8_1").val();
			$.ajax({
				url:"<?php echo $url_teacher_tue_7_8_1_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachertue781 = $.parseJSON(data);
					//alert(data);
					if(teachertue781){
						$('#teacher_tue_7_8_1').empty();
						 $('#teacher_tue_7_8_1').val('').trigger("liszt:updated");
						 $('#teacher_tue_7_8_1').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachertue781.length; index++) {
							
								$('#teacher_tue_7_8_1').append($("<option></option>").attr("value",teachertue781[index-1]['teacher_id']).text(teachertue781[index-1]['teacher_name'])); 
								//$("select#subject_tue_7_8_1").find("option#subject_tue_7_8_1[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_tue_7_8_1').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}
	//*****************************

	<?php $url_teacher_wed_7_8_1_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherwed781')); ?>
	function getTeachewed781Filter(){
		var subject_id=$("#subject_wed_7_8_1").val();
			$.ajax({
				url:"<?php echo $url_teacher_wed_7_8_1_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherwed781 = $.parseJSON(data);
					//alert(data);
					if(teacherwed781){
						$('#teacher_wed_7_8_1').empty();
						 $('#teacher_wed_7_8_1').val('').trigger("liszt:updated");
						 $('#teacher_wed_7_8_1').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherwed781.length; index++) {
							
								$('#teacher_wed_7_8_1').append($("<option></option>").attr("value",teacherwed781[index-1]['teacher_id']).text(teacherwed781[index-1]['teacher_name'])); 
								//$("select#subject_wed_7_8_1").find("option#subject_wed_7_8_1[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_wed_7_8_1').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_thu_7_8_1_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherthu781')); ?>
	function getTeachethu781Filter(){
		var subject_id=$("#subject_thu_7_8_1").val();
			$.ajax({
				url:"<?php echo $url_teacher_thu_7_8_1_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherthu781 = $.parseJSON(data);
					//alert(data);
					if(teacherthu781){
						$('#teacher_thu_7_8_1').empty();
						 $('#teacher_thu_7_8_1').val('').trigger("liszt:updated");
						 $('#teacher_thu_7_8_1').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherthu781.length; index++) {
							
								$('#teacher_thu_7_8_1').append($("<option></option>").attr("value",teacherthu781[index-1]['teacher_id']).text(teacherthu781[index-1]['teacher_name'])); 
								//$("select#subject_thu_7_8_1").find("option#subject_thu_7_8_1[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_thu_7_8_1').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_fri_7_8_1_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacherfri781')); ?>
	function getTeachefri781Filter(){
		var subject_id=$("#subject_fri_7_8_1").val();
			$.ajax({
				url:"<?php echo $url_teacher_fri_7_8_1_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teacherfri781 = $.parseJSON(data);
					//alert(data);
					if(teacherfri781){
						$('#teacher_fri_7_8_1').empty();
						 $('#teacher_fri_7_8_1').val('').trigger("liszt:updated");
						 $('#teacher_fri_7_8_1').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teacherfri781.length; index++) {
							
								$('#teacher_fri_7_8_1').append($("<option></option>").attr("value",teacherfri781[index-1]['teacher_id']).text(teacherfri781[index-1]['teacher_name'])); 
								//$("select#subject_fri_7_8_1").find("option#subject_fri_7_8_1[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_fri_7_8_1').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_sat_7_8_1_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachersat781')); ?>
	function getTeachesat781Filter(){
		var subject_id=$("#subject_sat_7_8_1").val();
			$.ajax({
				url:"<?php echo $url_teacher_sat_7_8_1_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachersat781 = $.parseJSON(data);
					//alert(data);
					if(teachersat781){
						$('#teacher_sat_7_8_1').empty();
						 $('#teacher_sat_7_8_1').val('').trigger("liszt:updated");
						 $('#teacher_sat_7_8_1').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachersat781.length; index++) {
							
								$('#teacher_sat_7_8_1').append($("<option></option>").attr("value",teachersat781[index-1]['teacher_id']).text(teachersat781[index-1]['teacher_name'])); 
								//$("select#subject_sat_7_8_1").find("option#subject_sat_7_8_1[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_sat_7_8_1').val('').trigger("liszt:updated");

					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_sun_7_8_1_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teachersun781')); ?>
	function getTeachesun78Filter(){
		var subject_id=$("#subject_sun_7_8_1").val();
			$.ajax({
				url:"<?php echo $url_teacher_sun_7_8_1_filter;?>",
				type:"post",
				data:{'subject_id':subject_id},
				success: function(data){
					teachersun781 = $.parseJSON(data);
					//alert(data);
					if(teachersun781){
						$('#teacher_sun_7_8_1').empty();
						 $('#teacher_sun_7_8_1').val('').trigger("liszt:updated");
						 $('#teacher_sun_7_8_1').append($("<option></option>").attr("value","").text("Please"));
						 for (var index = 1; index <= teachersun781.length; index++) {
							
								$('#teacher_sun_7_8_1').append($("<option></option>").attr("value",teachersun781[index-1]['teacher_id']).text(teachersun781[index-1]['teacher_name'])); 
								//$("select#subject_sun_7_8_1").find("option#subject_sun_7_8_1[index-1]['subject_id']").attr("selected", true);
						 }               
						$('#teacher_sun_7_8_1').val('').trigger("liszt:updated");

					}else{
						$('#teacher_sun_7_8_1').empty();
						 $('#teacher_sun_7_8_1').val('').trigger("liszt:updated");
						 $('#teacher_sun_7_8_1').append($("<option></option>").attr("value","").text("No Result"));

						 $('#teacher_sun_7_8_1').val('').trigger("liszt:updated");
					}
				},
				error:function(){
				}
			});
		}
//********************************************teacher blog****************************8
	
	<?php $url_teacher_exist_mon78_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-mon78-filter')); ?>
	function getTeacheExistmon78Filter(){
		var teacher_mon_7_8=$("#teacher_mon_7_8").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_mon78_filter;?>",
				type:"post",
				data:{'teacher_mon_7_8':teacher_mon_7_8},
				success: function(data){
					teachermon78 = $.parseJSON(data);
					if(teachermon78!=""){
						 for (var index = 1; index <= teachermon78.length; index++) {
							 alert(teachermon78[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_tue78_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-tue78-filter')); ?>
	function getTeacheExisttue78Filter(){
		var teacher_tue_7_8=$("#teacher_tue_7_8").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_tue78_filter;?>",
				type:"post",
				data:{'teacher_tue_7_8':teacher_tue_7_8},
				success: function(data){
					teachertue78 = $.parseJSON(data);
					if(teachertue78!=""){
						 for (var index = 1; index <= teachertue78.length; index++) {
							 alert(teachertue78[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_wed78_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-wed78-filter')); ?>
	function getTeacheExistwed78Filter(){
		var teacher_wed_7_8=$("#teacher_wed_7_8").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_wed78_filter;?>",
				type:"post",
				data:{'teacher_wed_7_8':teacher_wed_7_8},
				success: function(data){
					teacherwed78 = $.parseJSON(data);
					if(teacherwed78!=""){
						 for (var index = 1; index <= teacherwed78.length; index++) {
							 alert(teacherwed78[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_thu78_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-thu78-filter')); ?>
	function getTeacheExistthu78Filter(){
		var teacher_thu_7_8=$("#teacher_thu_7_8").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_thu78_filter;?>",
				type:"post",
				data:{'teacher_thu_7_8':teacher_thu_7_8},
				success: function(data){
					teacherthu78 = $.parseJSON(data);
					if(teacherthu78!=""){
						 for (var index = 1; index <= teacherthu78.length; index++) {
							 alert(teacherthu78[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_fri78_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-fri78-filter')); ?>
	function getTeacheExistfri78Filter(){
		var teacher_fri_7_8=$("#teacher_fri_7_8").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_fri78_filter;?>",
				type:"post",
				data:{'teacher_fri_7_8':teacher_fri_7_8},
				success: function(data){
					teacherfri78 = $.parseJSON(data);
					if(teacherfri78!=""){
						 for (var index = 1; index <= teacherfri78.length; index++) {
							 alert(teacherfri78[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_sat78_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-sat78-filter')); ?>
	function getTeacheExistsat78Filter(){
		var teacher_sat_7_8=$("#teacher_sat_7_8").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_sat78_filter;?>",
				type:"post",
				data:{'teacher_sat_7_8':teacher_sat_7_8},
				success: function(data){
					teachersat78 = $.parseJSON(data);
					if(teachersat78!=""){
						 for (var index = 1; index <= teachersat78.length; index++) {
							 alert(teachersat78[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_sun78_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-sun78-filter')); ?>
	function getTeacheExistsun78Filter(){
		var teacher_sun_7_8=$("#teacher_sun_7_8").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_sun78_filter;?>",
				type:"post",
				data:{'teacher_sun_7_8':teacher_sun_7_8},
				success: function(data){
					teachersun78 = $.parseJSON(data);
					if(teachersun78!=""){
						 for (var index = 1; index <= teachersun78.length; index++) {
							 alert(teachersun78[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	//********************************************810*******************

	<?php $url_teacher_exist_mon810_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-mon810-filter')); ?>
	function getTeacheExistmon810Filter(){
		var teacher_mon_8_10=$("#teacher_mon_8_10").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_mon810_filter;?>",
				type:"post",
				data:{'teacher_mon_8_10':teacher_mon_8_10},
				success: function(data){
					teachermon810 = $.parseJSON(data);
					if(teachermon810!=""){
						 for (var index = 1; index <= teachermon810.length; index++) {
							 alert(teachermon810[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_tue810_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-tue810-filter')); ?>
	function getTeacheExisttue810Filter(){
		var teacher_tue_8_10=$("#teacher_tue_8_10").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_tue810_filter;?>",
				type:"post",
				data:{'teacher_tue_8_10':teacher_tue_8_10},
				success: function(data){
					teachertue810 = $.parseJSON(data);
					if(teachertue810!=""){
						 for (var index = 1; index <= teachertue810.length; index++) {
							 alert(teachertue810[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_wed810_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-wed810-filter')); ?>
	function getTeacheExistwed810Filter(){
		var teacher_wed_8_10=$("#teacher_wed_8_10").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_wed810_filter;?>",
				type:"post",
				data:{'teacher_wed_8_10':teacher_wed_8_10},
				success: function(data){
					teacherwed810 = $.parseJSON(data);
					if(teacherwed810!=""){
						 for (var index = 1; index <= teacherwed810.length; index++) {
							 alert(teacherwed810[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_thu810_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-thu810-filter')); ?>
	function getTeacheExistthu810Filter(){
		var teacher_thu_8_10=$("#teacher_thu_8_10").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_thu810_filter;?>",
				type:"post",
				data:{'teacher_thu_8_10':teacher_thu_8_10},
				success: function(data){
					teacherthu810 = $.parseJSON(data);
					if(teacherthu810!=""){
						 for (var index = 1; index <= teacherthu810.length; index++) {
							 alert(teacherthu810[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_fri810_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-fri810-filter')); ?>
	function getTeacheExistfri810Filter(){
		var teacher_fri_8_10=$("#teacher_fri_8_10").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_fri810_filter;?>",
				type:"post",
				data:{'teacher_fri_8_10':teacher_fri_8_10},
				success: function(data){
					teacherfri810 = $.parseJSON(data);
					if(teacherfri810!=""){
						 for (var index = 1; index <= teacherfri810.length; index++) {
							 alert(teacherfri810[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_sat810_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-sat810-filter')); ?>
	function getTeacheExistsat810Filter(){
		var teacher_sat_8_10=$("#teacher_sat_8_10").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_sat810_filter;?>",
				type:"post",
				data:{'teacher_sat_8_10':teacher_sat_8_10},
				success: function(data){
					teachersat810 = $.parseJSON(data);
					if(teachersat810!=""){
						 for (var index = 1; index <= teachersat810.length; index++) {
							 alert(teachersat810[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_sun810_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-sun810-filter')); ?>
	function getTeacheExistsun810Filter(){
		var teacher_sun_8_10=$("#teacher_sun_8_10").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_sun810_filter;?>",
				type:"post",
				data:{'teacher_sun_8_10':teacher_sun_8_10},
				success: function(data){
					teachersun810 = $.parseJSON(data);
					if(teachersun810!=""){
						 for (var index = 1; index <= teachersun810.length; index++) {
							 alert(teachersun810[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	//******************************** 1012************************8

	<?php $url_teacher_exist_mon1012_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-mon1012-filter')); ?>
	function getTeacheExistmon1012Filter(){
		var teacher_mon_10_12=$("#teacher_mon_10_12").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_mon1012_filter;?>",
				type:"post",
				data:{'teacher_mon_10_12':teacher_mon_10_12},
				success: function(data){
					teachermon1012 = $.parseJSON(data);
					if(teachermon1012!=""){
						 for (var index = 1; index <= teachermon1012.length; index++) {
							 alert(teachermon1012[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_tue1012_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-tue1012-filter')); ?>
	function getTeacheExisttue1012Filter(){
		var teacher_tue_10_12=$("#teacher_tue_10_12").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_tue1012_filter;?>",
				type:"post",
				data:{'teacher_tue_10_12':teacher_tue_10_12},
				success: function(data){
					teachertue1012 = $.parseJSON(data);
					if(teachertue1012!=""){
						 for (var index = 1; index <= teachertue1012.length; index++) {
							 alert(teachertue1012[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_wed1012_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-wed1012-filter')); ?>
	function getTeacheExistwed1012Filter(){
		var teacher_wed_10_12=$("#teacher_wed_10_12").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_wed1012_filter;?>",
				type:"post",
				data:{'teacher_wed_10_12':teacher_wed_10_12},
				success: function(data){
					teacherwed1012 = $.parseJSON(data);
					if(teacherwed1012!=""){
						 for (var index = 1; index <= teacherwed1012.length; index++) {
							 alert(teacherwed1012[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_thu1012_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-thu1012-filter')); ?>
	function getTeacheExistthu1012Filter(){
		var teacher_thu_10_12=$("#teacher_thu_10_12").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_thu1012_filter;?>",
				type:"post",
				data:{'teacher_thu_10_12':teacher_thu_10_12},
				success: function(data){
					teacherthu1012 = $.parseJSON(data);
					if(teacherthu1012!=""){
						 for (var index = 1; index <= teacherthu1012.length; index++) {
							 alert(teacherthu1012[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_fri1012_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-fri1012-filter')); ?>
	function getTeacheExistfri1012Filter(){
		var teacher_fri_10_12=$("#teacher_fri_10_12").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_fri1012_filter;?>",
				type:"post",
				data:{'teacher_fri_10_12':teacher_fri_10_12},
				success: function(data){
					teacherfri1012 = $.parseJSON(data);
					if(teacherfri1012!=""){
						 for (var index = 1; index <= teacherfri1012.length; index++) {
							 alert(teacherfri1012[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_sat1012_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-sat1012-filter')); ?>
	function getTeacheExistsat1012Filter(){
		var teacher_sat_10_12=$("#teacher_sat_10_12").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_sat1012_filter;?>",
				type:"post",
				data:{'teacher_sat_10_12':teacher_sat_10_12},
				success: function(data){
					teachersat1012 = $.parseJSON(data);
					if(teachersat1012!=""){
						 for (var index = 1; index <= teachersat1012.length; index++) {
							 alert(teachersat1012[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_sun1012_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-sun1012-filter')); ?>
	function getTeacheExistsun1012Filter(){
		var teacher_sun_10_12=$("#teacher_sun_10_12").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_sun1012_filter;?>",
				type:"post",
				data:{'teacher_sun_10_12':teacher_sun_10_12},
				success: function(data){
					teachersun1012 = $.parseJSON(data);
					if(teachersun1012!=""){
						 for (var index = 1; index <= teachersun1012.length; index++) {
							 alert(teachersun1012[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}
	//********************************* 12**&***************************************

	<?php $url_teacher_exist_mon12_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-mon12-filter')); ?>
	function getTeacheExistmon12Filter(){
		var teacher_mon_1_2=$("#teacher_mon_1_2").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_mon12_filter;?>",
				type:"post",
				data:{'teacher_mon_1_2':teacher_mon_1_2},
				success: function(data){
					teachermon12 = $.parseJSON(data);
					if(teachermon12!=""){
						 for (var index = 1; index <= teachermon12.length; index++) {
							 alert(teachermon12[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_tue12_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-tue12-filter')); ?>
	function getTeacheExisttue12Filter(){
		var teacher_tue_1_2=$("#teacher_tue_1_2").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_tue12_filter;?>",
				type:"post",
				data:{'teacher_tue_1_2':teacher_tue_1_2},
				success: function(data){
					teachertue12 = $.parseJSON(data);
					if(teachertue12!=""){
						 for (var index = 1; index <= teachertue12.length; index++) {
							 alert(teachertue12[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_wed12_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-wed12-filter')); ?>
	function getTeacheExistwed12Filter(){
		var teacher_wed_1_2=$("#teacher_wed_1_2").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_wed12_filter;?>",
				type:"post",
				data:{'teacher_wed_1_2':teacher_wed_1_2},
				success: function(data){
					teacherwed12 = $.parseJSON(data);
					if(teacherwed12!=""){
						 for (var index = 1; index <= teacherwed12.length; index++) {
							 alert(teacherwed12[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_thu12_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-thu12-filter')); ?>
	function getTeacheExistthu12Filter(){
		var teacher_thu_1_2=$("#teacher_thu_1_2").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_thu12_filter;?>",
				type:"post",
				data:{'teacher_thu_1_2':teacher_thu_1_2},
				success: function(data){
					teacherthu12 = $.parseJSON(data);
					if(teacherthu12!=""){
						 for (var index = 1; index <= teacherthu12.length; index++) {
							 alert(teacherthu12[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_fri12_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-fri12-filter')); ?>
	function getTeacheExistfri12Filter(){
		var teacher_fri_1_2=$("#teacher_fri_1_2").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_fri12_filter;?>",
				type:"post",
				data:{'teacher_fri_1_2':teacher_fri_1_2},
				success: function(data){
					teacherfri12 = $.parseJSON(data);
					if(teacherfri12!=""){
						 for (var index = 1; index <= teacherfri12.length; index++) {
							 alert(teacherfri12[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_sat12_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-sat12-filter')); ?>
	function getTeacheExistsat12Filter(){
		var teacher_sat_1_2=$("#teacher_sat_1_2").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_sat12_filter;?>",
				type:"post",
				data:{'teacher_sat_1_2':teacher_sat_1_2},
				success: function(data){
					teachersat12 = $.parseJSON(data);
					if(teachersat12!=""){
						 for (var index = 1; index <= teachersat12.length; index++) {
							 alert(teachersat12[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_sun12_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-sun12-filter')); ?>
	function getTeacheExistsun12Filter(){
		var teacher_sun_1_2=$("#teacher_sun_1_2").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_sun12_filter;?>",
				type:"post",
				data:{'teacher_sun_1_2':teacher_sun_1_2},
				success: function(data){
					teachersun12 = $.parseJSON(data);
					if(teachersun12!=""){
						 for (var index = 1; index <= teachersun12.length; index++) {
							 alert(teachersun12[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	//*************************** 24 **************************

	<?php $url_teacher_exist_mon24_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-mon24-filter')); ?>
	function getTeacheExistmon24Filter(){
		var teacher_mon_2_4=$("#teacher_mon_2_4").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_mon24_filter;?>",
				type:"post",
				data:{'teacher_mon_2_4':teacher_mon_2_4},
				success: function(data){
					teachermon24 = $.parseJSON(data);
					if(teachermon24!=""){
						 for (var index = 1; index <= teachermon24.length; index++) {
							 alert(teachermon24[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_tue24_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-tue24-filter')); ?>
	function getTeacheExisttue24Filter(){
		var teacher_tue_2_4=$("#teacher_tue_2_4").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_tue24_filter;?>",
				type:"post",
				data:{'teacher_tue_2_4':teacher_tue_2_4},
				success: function(data){
					teachertue24 = $.parseJSON(data);
					if(teachertue24!=""){
						 for (var index = 1; index <= teachertue24.length; index++) {
							 alert(teachertue24[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_wed24_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-wed24-filter')); ?>
	function getTeacheExistwed24Filter(){
		var teacher_wed_2_4=$("#teacher_wed_2_4").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_wed24_filter;?>",
				type:"post",
				data:{'teacher_wed_2_4':teacher_wed_2_4},
				success: function(data){
					teacherwed24 = $.parseJSON(data);
					if(teacherwed24!=""){
						 for (var index = 1; index <= teacherwed24.length; index++) {
							 alert(teacherwed24[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_thu24_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-thu24-filter')); ?>
	function getTeacheExistthu24Filter(){
		var teacher_thu_2_4=$("#teacher_thu_2_4").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_thu24_filter;?>",
				type:"post",
				data:{'teacher_thu_2_4':teacher_thu_2_4},
				success: function(data){
					teacherthu24 = $.parseJSON(data);
					if(teacherthu24!=""){
						 for (var index = 1; index <= teacherthu24.length; index++) {
							 alert(teacherthu24[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_fri24_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-fri24-filter')); ?>
	function getTeacheExistfri24Filter(){
		var teacher_fri_2_4=$("#teacher_fri_2_4").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_fri24_filter;?>",
				type:"post",
				data:{'teacher_fri_2_4':teacher_fri_2_4},
				success: function(data){
					teacherfri24 = $.parseJSON(data);
					if(teacherfri24!=""){
						 for (var index = 1; index <= teacherfri24.length; index++) {
							 alert(teacherfri24[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_sat24_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-sat24-filter')); ?>
	function getTeacheExistsat24Filter(){
		var teacher_sat_2_4=$("#teacher_sat_2_4").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_sat24_filter;?>",
				type:"post",
				data:{'teacher_sat_2_4':teacher_sat_2_4},
				success: function(data){
					teachersat24 = $.parseJSON(data);
					if(teachersat24!=""){
						 for (var index = 1; index <= teachersat24.length; index++) {
							 alert(teachersat24[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_sun24_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-sun24-filter')); ?>
	function getTeacheExistsun24Filter(){
		var teacher_sun_2_4=$("#teacher_sun_2_4").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_sun24_filter;?>",
				type:"post",
				data:{'teacher_sun_2_4':teacher_sun_2_4},
				success: function(data){
					teachersun24 = $.parseJSON(data);
					if(teachersun24!=""){
						 for (var index = 1; index <= teachersun24.length; index++) {
							 alert(teachersun24[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	//******************************45***************************

	<?php $url_teacher_exist_mon45_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-mon45-filter')); ?>
	function getTeacheExistmon45Filter(){
		var teacher_mon_4_5=$("#teacher_mon_4_5").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_mon45_filter;?>",
				type:"post",
				data:{'teacher_mon_4_5':teacher_mon_4_5},
				success: function(data){
					teachermon45 = $.parseJSON(data);
					if(teachermon45!=""){
						 for (var index = 1; index <= teachermon45.length; index++) {
							 alert(teachermon45[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_tue45_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-tue45-filter')); ?>
	function getTeacheExisttue45Filter(){
		var teacher_tue_4_5=$("#teacher_tue_4_5").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_tue45_filter;?>",
				type:"post",
				data:{'teacher_tue_4_5':teacher_tue_4_5},
				success: function(data){
					teachertue45 = $.parseJSON(data);
					if(teachertue45!=""){
						 for (var index = 1; index <= teachertue45.length; index++) {
							 alert(teachertue45[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_wed45_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-wed45-filter')); ?>
	function getTeacheExistwed45Filter(){
		var teacher_wed_4_5=$("#teacher_wed_4_5").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_wed45_filter;?>",
				type:"post",
				data:{'teacher_wed_4_5':teacher_wed_4_5},
				success: function(data){
					teacherwed45 = $.parseJSON(data);
					if(teacherwed45!=""){
						 for (var index = 1; index <= teacherwed45.length; index++) {
							 alert(teacherwed45[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_thu45_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-thu45-filter')); ?>
	function getTeacheExistthu45Filter(){
		var teacher_thu_4_5=$("#teacher_thu_4_5").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_thu45_filter;?>",
				type:"post",
				data:{'teacher_thu_4_5':teacher_thu_4_5},
				success: function(data){
					teacherthu45 = $.parseJSON(data);
					if(teacherthu45!=""){
						 for (var index = 1; index <= teacherthu45.length; index++) {
							 alert(teacherthu45[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_fri45_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-fri45-filter')); ?>
	function getTeacheExistfri45Filter(){
		var teacher_fri_4_5=$("#teacher_fri_4_5").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_fri45_filter;?>",
				type:"post",
				data:{'teacher_fri_4_5':teacher_fri_4_5},
				success: function(data){
					teacherfri45 = $.parseJSON(data);
					if(teacherfri45!=""){
						 for (var index = 1; index <= teacherfri45.length; index++) {
							 alert(teacherfri45[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_sat45_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-sat45-filter')); ?>
	function getTeacheExistsat45Filter(){
		var teacher_sat_4_5=$("#teacher_sat_4_5").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_sat45_filter;?>",
				type:"post",
				data:{'teacher_sat_4_5':teacher_sat_4_5},
				success: function(data){
					teachersat45 = $.parseJSON(data);
					if(teachersat45!=""){
						 for (var index = 1; index <= teachersat45.length; index++) {
							 alert(teachersat45[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_sun45_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-sun45-filter')); ?>
	function getTeacheExistsun45Filter(){
		var teacher_sun_4_5=$("#teacher_sun_4_5").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_sun45_filter;?>",
				type:"post",
				data:{'teacher_sun_4_5':teacher_sun_4_5},
				success: function(data){
					teachersun45 = $.parseJSON(data);
					if(teachersun45!=""){
						 for (var index = 1; index <= teachersun45.length; index++) {
							 alert(teachersun45[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	//*****************************************57************************************

	<?php $url_teacher_exist_mon57_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-mon57-filter')); ?>
	function getTeacheExistmon57Filter(){
		var teacher_mon_5_7=$("#teacher_mon_5_7").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_mon57_filter;?>",
				type:"post",
				data:{'teacher_mon_5_7':teacher_mon_5_7},
				success: function(data){
					teachermon57 = $.parseJSON(data);
					if(teachermon57!=""){
						 for (var index = 1; index <= teachermon57.length; index++) {
							 alert(teachermon57[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_tue57_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-tue57-filter')); ?>
	function getTeacheExisttue57Filter(){
		var teacher_tue_5_7=$("#teacher_tue_5_7").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_tue57_filter;?>",
				type:"post",
				data:{'teacher_tue_5_7':teacher_tue_5_7},
				success: function(data){
					teachertue57 = $.parseJSON(data);
					if(teachertue57!=""){
						 for (var index = 1; index <= teachertue57.length; index++) {
							 alert(teachertue57[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_wed57_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-wed57-filter')); ?>
	function getTeacheExistwed57Filter(){
		var teacher_wed_5_7=$("#teacher_wed_5_7").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_wed57_filter;?>",
				type:"post",
				data:{'teacher_wed_5_7':teacher_wed_5_7},
				success: function(data){
					teacherwed57 = $.parseJSON(data);
					if(teacherwed57!=""){
						 for (var index = 1; index <= teacherwed57.length; index++) {
							 alert(teacherwed57[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_thu57_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-thu57-filter')); ?>
	function getTeacheExistthu57Filter(){
		var teacher_thu_5_7=$("#teacher_thu_5_7").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_thu57_filter;?>",
				type:"post",
				data:{'teacher_thu_5_7':teacher_thu_5_7},
				success: function(data){
					teacherthu57 = $.parseJSON(data);
					if(teacherthu57!=""){
						 for (var index = 1; index <= teacherthu57.length; index++) {
							 alert(teacherthu57[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_fri57_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-fri57-filter')); ?>
	function getTeacheExistfri57Filter(){
		var teacher_fri_5_7=$("#teacher_fri_5_7").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_fri57_filter;?>",
				type:"post",
				data:{'teacher_fri_5_7':teacher_fri_5_7},
				success: function(data){
					teacherfri57 = $.parseJSON(data);
					if(teacherfri57!=""){
						 for (var index = 1; index <= teacherfri57.length; index++) {
							 alert(teacherfri57[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_sat57_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-sat57-filter')); ?>
	function getTeacheExistsat57Filter(){
		var teacher_sat_5_7=$("#teacher_sat_5_7").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_sat57_filter;?>",
				type:"post",
				data:{'teacher_sat_5_7':teacher_sat_5_7},
				success: function(data){
					teachersat57 = $.parseJSON(data);
					if(teachersat57!=""){
						 for (var index = 1; index <= teachersat57.length; index++) {
							 alert(teachersat57[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_sun57_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-sun57-filter')); ?>
	function getTeacheExistsun57Filter(){
		var teacher_sun_5_7=$("#teacher_sun_5_7").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_sun57_filter;?>",
				type:"post",
				data:{'teacher_sun_5_7':teacher_sun_5_7},
				success: function(data){
					teachersun57 = $.parseJSON(data);
					if(teachersun57!=""){
						 for (var index = 1; index <= teachersun57.length; index++) {
							 alert(teachersun57[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	//********************************* 781 *********************************8
	<?php $url_teacher_exist_mon781_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-mon781-filter')); ?>
	function getTeacheExistmon781Filter(){
		var teacher_mon_7_8_1=$("#teacher_mon_7_8_1").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_mon781_filter;?>",
				type:"post",
				data:{'teacher_mon_7_8_1':teacher_mon_7_8_1},
				success: function(data){
					teachermon781 = $.parseJSON(data);
					if(teachermon781!=""){
						 for (var index = 1; index <= teachermon781.length; index++) {
							 alert(teachermon781[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_tue781_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-tue781-filter')); ?>
	function getTeacheExisttue781Filter(){
		var teacher_tue_7_8_1=$("#teacher_tue_7_8_1").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_tue781_filter;?>",
				type:"post",
				data:{'teacher_tue_7_8_1':teacher_tue_7_8_1},
				success: function(data){
					teachertue781 = $.parseJSON(data);
					if(teachertue781!=""){
						 for (var index = 1; index <= teachertue781.length; index++) {
							 alert(teachertue781[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_wed781_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-wed781-filter')); ?>
	function getTeacheExistwed781Filter(){
		var teacher_wed_7_8_1=$("#teacher_wed_7_8_1").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_wed781_filter;?>",
				type:"post",
				data:{'teacher_wed_7_8_1':teacher_wed_7_8_1},
				success: function(data){
					teacherwed781 = $.parseJSON(data);
					if(teacherwed781!=""){
						 for (var index = 1; index <= teacherwed781.length; index++) {
							 alert(teacherwed781[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_thu781_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-thu781-filter')); ?>
	function getTeacheExistthu781Filter(){
		var teacher_thu_7_8_1=$("#teacher_thu_7_8_1").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_thu781_filter;?>",
				type:"post",
				data:{'teacher_thu_7_8_1':teacher_thu_7_8_1},
				success: function(data){
					teacherthu781 = $.parseJSON(data);
					if(teacherthu781!=""){
						 for (var index = 1; index <= teacherthu781.length; index++) {
							 alert(teacherthu781[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_fri781_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-fri781-filter')); ?>
	function getTeacheExistfri781Filter(){
		var teacher_fri_7_8_1=$("#teacher_fri_7_8_1").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_fri781_filter;?>",
				type:"post",
				data:{'teacher_fri_7_8_1':teacher_fri_7_8_1},
				success: function(data){
					teacherfri781 = $.parseJSON(data);
					if(teacherfri781!=""){
						 for (var index = 1; index <= teacherfri781.length; index++) {
							 alert(teacherfri781[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_sat781_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-sat781-filter')); ?>
	function getTeacheExistsat781Filter(){
		var teacher_sat_7_8_1=$("#teacher_sat_7_8_1").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_sat781_filter;?>",
				type:"post",
				data:{'teacher_sat_7_8_1':teacher_sat_7_8_1},
				success: function(data){
					teachersat781 = $.parseJSON(data);
					if(teachersat781!=""){
						 for (var index = 1; index <= teachersat781.length; index++) {
							 alert(teachersat781[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}

	<?php $url_teacher_exist_sun781_filter =  $this->url(array('module'=>'schedule','controller'=>'index','action'=>'teacher-exist-sun781-filter')); ?>
	function getTeacheExistsun781Filter(){
		var teacher_sun_7_8_1=$("#teacher_sun_7_8_1").val();
			$.ajax({
				url:"<?php echo $url_teacher_exist_sun781_filter;?>",
				type:"post",
				data:{'teacher_sun_7_8_1':teacher_sun_7_8_1},
				success: function(data){
					teachersun781 = $.parseJSON(data);
					if(teachersun781!=""){
						 for (var index = 1; index <= teachersun781.length; index++) {
							 alert(teachersun781[index-1]['teacher_name']+" is Already Exist!!");
						}
					}else{
					}
				},
				error:function(){
				}
			});
		}
	</script>
    <!-- Bootstrap core JavaScript -->
    <script src="<?php $this->baseUrl()?>/js/jquery.min.js"></script>
    <script src="<?php $this->baseUrl()?>/js/bootstrap.js"></script>
    <!-- Page Specific Plugins -->
    <script src="<?php $this->baseUrl()?>/js/raphael-min.js"></script>
    <script src="<?php $this->baseUrl()?>/js/morris-0.4.3.min.js"></script>
    <script src="<?php $this->baseUrl()?>/js/morris/chart-data-morris.js"></script>
    <script src="<?php $this->baseUrl()?>/js/tablesorter/jquery.tablesorter.js"></script>
    <script src="<?php $this->baseUrl()?>/js/tablesorter/tables.js"></script>
  </body>
</html>
